Changeset 44468
- Timestamp:
- 01/01/20 21:17:52 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/cloudflare.py
r44467 r44468 24 24 'Content-Type': 'text/html; charset=utf-8'} 25 25 26 # html = self.net.http_GET(web_url, headers=headers).content 27 # #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True) 28 # ret = self.net.save_cookies('/mnt/network/cookies') 29 # print "html", html.encode('utf8') 26 30 27 # print "cloudflare.CheckIfActive: ", web_url 28 29 try: 30 CF = cloudflare.CloudflareBypass() 31 html = CF.GetHtml(web_url) 32 print CF.GetReponseInfo() 33 print "html", html 34 except: 35 html = self.net.http_GET(web_url, headers=headers).content 36 #html = self.request(web_url, cookie_file=/mnt/network/cookies, cloudflare=True) 37 ret = self.net.save_cookies('/mnt/network/cookies') 38 print "html", html.encode('utf8') 31 CF = cloudflare.CloudflareBypass() 32 html = CF.GetHtml(web_url) 33 print CF.GetReponseInfo() 34 print "html", html 39 35 40 36 sys.stdout = CloudflareResolver()
Note: See TracChangeset
for help on using the changeset viewer.