Ignore:
Timestamp:
01/01/20 21:09:06 (2 years ago)
Author:
obi
Message:

fix cloudflare

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/cloudflare.py

    r42595 r44466  
    2323                   'Content-Type': 'text/html; charset=utf-8'}
    2424
    25         html = self.net.http_GET(web_url, headers=headers).content
     25#        html = self.net.http_GET(web_url, headers=headers).content
    2626        #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
    2935
    3036sys.stdout = CloudflareResolver()
Note: See TracChangeset for help on using the changeset viewer.