Exemplo n.º 1
0
 def __init__(self):
     MiaParse.__init__(self)
     self.headers = {
         'Accept':
         'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
         # 'Accept-Encoding:': 'gzip',
         'Accept-Language': 'zh-CN,zh;q=0.8',
         'Cache-Control': 'max-age=0',
         'Connection': 'keep-alive',
         'Host': 'm.mia.com',
         'Referer': 'https://m.mia.com/',
         'User-Agent': HEADERS[randint(0, 34)],  # 随机一个请求头
     }
Exemplo n.º 2
0
 def __init__(self):
     MiaParse.__init__(self)
     self._set_headers()