Ejemplo n.º 1
0
 def get_doc(self):
     if self.content is None:
         self.content = multihttp.sync_url_get(self.url)
     return fromstring(self.content)
Ejemplo n.º 2
0
def lookup_article(url):
    content = multihttp.sync_url_get(url)
    article = parse_article(content)
    article['url'] = url
    return article