Esempio n. 1
0
 def _get_html_content_by_requests(self, url):
     # refer用的是base url
     w = WebPage(url, self.myconfig.url)
     try:
         w.fetch()
         c = w.getDatas()[1]
         return c
     except Exception, e:
         return ""