前回、google app engineでlxmlの設定を行ったので、実際にパースする方法について書いていく。
import urllib from urlparse import urlparse from google.appengine.api import urlfetch from lxml import etree url = "" result = urlfetch.fetch(url) root = etree.fromstring(result.content)
常にテンパってます。
前回、google app engineでlxmlの設定を行ったので、実際にパースする方法について書いていく。
import urllib from urlparse import urlparse from google.appengine.api import urlfetch from lxml import etree url = "" result = urlfetch.fetch(url) root = etree.fromstring(result.content)
0 コメント:
コメントを投稿