예제 #1
0
 def _post(self, url, data):
     data = urllib.urlencode(data)
     return dreamfilm_request(url, data)
     content = urllib2.urlopen(url=url, data=data).read()
     return content
예제 #2
0
 def _fetch_html(self, url, page=None):
     if page:
         url = url + ('?page=%d' % page)
     return dreamfilm_request(url)
     response = urllib2.urlopen(url)
     return response.read()
예제 #3
0
def fetch_html(url):
    return dreamfilm_request(url)
    response = urllib2.urlopen(url)
    return response.read()