mirror of
https://github.com/horacio9a/cam4-anonymous.git
synced 2024-09-20 15:06:00 +08:00
v.1.1.1 Cam4 Anonymous All Modes Recorder for Python27
This commit is contained in:
parent
b04c2b7459
commit
8882199199
9
c4.py
9
c4.py
|
@ -26,12 +26,11 @@ while True:
|
|||
print(colored('\n => Input must be a number <=\n', 'white', 'on_red'))
|
||||
model = open(config.get('files', 'model_list'), 'r').readlines()[mn-1][:-1]
|
||||
|
||||
url ='https://www.cam4.com/{}'.format(model)
|
||||
user_agent = {'user-agent': 'Mozilla/5.0 (Android; Mobile; rv:14.0) ..'}
|
||||
http = urllib3.PoolManager(10, headers=user_agent)
|
||||
r = http.urlopen('GET',url)
|
||||
url ='https://www.cam4.com/{}/'.format(model)
|
||||
manager = PoolManager(10)
|
||||
r = manager.request('GET', url)
|
||||
enc = (r.data)
|
||||
dec=urllib.unquote(enc).decode()
|
||||
dec=urllib.unquote(enc)
|
||||
|
||||
if 'showState' in dec:
|
||||
status0 = dec.split("showState: '")[1]
|
||||
|
|
Loading…
Reference in a new issue