Changeset 44466
- Timestamp:
- 01/01/20 21:09:06 (3 years ago)
- Location:
- titan/mediathek/localhoster
- Files:
-
- 120 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/cloudflare.py
r42595 r44466 23 23 'Content-Type': 'text/html; charset=utf-8'} 24 24 25 html = self.net.http_GET(web_url, headers=headers).content25 # html = self.net.http_GET(web_url, headers=headers).content 26 26 #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True) 27 ret = self.net.save_cookies('/mnt/network/cookies') 28 print "html", html.encode('utf8') 27 # ret = self.net.save_cookies('/mnt/network/cookies') 28 # print "html", html.encode('utf8') 29 30 # print "cloudflare.CheckIfActive: ", web_url 31 CF = cloudflare.CloudflareBypass() 32 html = CF.GetHtml(web_url) 33 print CF.GetReponseInfo() 34 print "html", html 29 35 30 36 sys.stdout = CloudflareResolver() -
titan/mediathek/localhoster/lib/common.py
r42598 r44466 34 34 #has_addon = kodi.has_addon 35 35 36 profilePath = "/tmp/pro" 36 37 37 38 RAND_UA = get_ua()
Note: See TracChangeset
for help on using the changeset viewer.