v.1.0.1 cam4-anonymous script with suppressed rtmpdump window

This commit is contained in:
horacio9a 2017-08-30 04:44:14 +02:00 committed by GitHub
parent bf434e3960
commit 18a803fb90

7
c4.py
View file

@ -1,4 +1,4 @@
# Cam4 Anonymous Freechat RTMP Recorder v.1.0.0 by horacio9a for Python 2.7.13 # Cam4 Anonymous Freechat RTMP Recorder v.1.0.1 by horacio9a for Python 2.7.13
import sys, os, urllib, urllib3, ssl, re, time, datetime, command import sys, os, urllib, urllib3, ssl, re, time, datetime, command
urllib3.disable_warnings() urllib3.disable_warnings()
@ -37,6 +37,7 @@ http_pool = urllib3.connection_from_url(url)
r = http_pool.urlopen('GET',url) r = http_pool.urlopen('GET',url)
enc = (r.data) enc = (r.data)
dec=urllib.unquote(enc).decode() dec=urllib.unquote(enc).decode()
#dec0=urllib.unquote(enc).decode('cp1250')
if "Trending Cams" not in dec: if "Trending Cams" not in dec:
try: try:
@ -69,8 +70,8 @@ if "Trending Cams" not in dec:
except: except:
occ = '' occ = ''
print (colored(' => Age:{} * Location:{} * Status:{} * Job:{} <=', 'yellow', 'on_blue')).format(age,loc,sta,occ) print (colored(' => Age:{} * Location:{} * Status:{} * Job:{} <=', 'yellow', 'on_blue')).format(age,loc,sta,occ)
print print
if "cam-offline" in dec: if "cam-offline" in dec:
vau0 = dec.split('videoAppUrl=')[1] vau0 = dec.split('videoAppUrl=')[1]