Exemplo n.º 1
0
 def urlopen_get_url_image(self, url, path, view=False):
     headers = {
         'User-Agent': '%s' % USER_AGENTS['AppleWebKit/537.36'],
         'GET' : url,
         'Referer' : self._com,
     }
     return WebContent.urlopen_get_url_file(url, path,
                                            ssl=WebContent.url_is_https(url),
                                            headers=headers, view=view)
Exemplo n.º 2
0
 def urlopen_get_url_image(self, url, path, view=False):
     headers = {
         'User-Agent': '%s' % USER_AGENTS['AppleWebKit/537.36'],
         'GET': url,
         'Referer': 'https://m.mzitu.com/',
     }
     return WebContent.urlopen_get_url_file(url, path,
                                            ssl=True,
                                            headers=headers, view=view)