From e3a5d71cd9f93b16fb0e670505609efc1d161ea8 Mon Sep 17 00:00:00 2001 From: horacio9a Date: Fri, 6 Oct 2017 18:43:26 +0200 Subject: [PATCH] v.1.0.5 Remote rtmpdump 24/7 cam4-anonymous script with visible data --- c4rw.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/c4rw.py b/c4rw.py index 6928ed2..21a91f4 100644 --- a/c4rw.py +++ b/c4rw.py @@ -1,7 +1,8 @@ -# Cam4 Remote Anonymous RTMP Recorder v.1.0.4 by horacio9a for Python 2.7.13 +# Cam4 Remote Anonymous RTMP Recorder v.1.0.5 by horacio9a for Python 2.7.13 import sys, os, urllib, urllib3, ssl, re, time, datetime, command urllib3.disable_warnings() +from urllib3 import PoolManager reload(sys) sys.setdefaultencoding('utf-8') from colorama import init, Fore, Back, Style @@ -20,8 +21,8 @@ if __name__=='__main__': model = sys.argv[1] url ='https://www.cam4.com/{}'.format(model) -http_pool = urllib3.connection_from_url(url) -r = http_pool.urlopen('GET',url) +manager = PoolManager(10) +r = manager.request('GET', url) enc = (r.data) dec=urllib.unquote(enc).decode()