mirror of
https://github.com/horacio9a/cam4-anonymous.git
synced 2024-09-20 06:56:00 +08:00
v.1.1.1 Cam4 Remote 24/7 Anonymous STREAMLINK Recorder for Python27
This commit is contained in:
parent
8e86bf12d5
commit
7c5bb312f0
9
c4slr.py
9
c4slr.py
|
@ -19,12 +19,11 @@ if __name__=='__main__':
|
|||
import sys
|
||||
model = sys.argv[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