jairoxyz / script.module.cloudscraper

GNU General Public License v3.0
9 stars 5 forks source link

Some help if is posible #2

Open andress134 opened 4 years ago

andress134 commented 4 years ago

@jairoxyz Hello sir, want to upgrade my script, but we need some help, im testing but some wrong idk if u can help me

My exemple code


import cloudscraper
def bypass():
    pprr = open(list).readlines()
    proxy = random.choice(pprr).strip().split(":")
    scraper = cloudscraper.create_scraper()
    scraper.proxies = {
    'http' : 'http://{}:{}'.format(proxy[0], proxy[1]),
    'https' : 'https://{}:{}'.format(proxy[0], proxy[1])
    }
    while True:
        while oo:
            try:
                scraper.get(uri)
                print(Fore.GREEN + "Bypassed")
                try:
                    for g in range(per):
                        scraper.get(uri)
                        print(Fore.GREEN + "Bypassed")
                    scraper.close()
                except:
                    scraper.close()
            except:
                scraper.close()
                print(Fore.RED + "failed")```
Cosmysd commented 4 years ago

@jairoxyz Hello sir, want to upgrade my script, but we need some help, im testing but some wrong idk if u can help me

My exemple code

import cloudscraper
def bypass():
  pprr = open(list).readlines()
  proxy = random.choice(pprr).strip().split(":")
  scraper = cloudscraper.create_scraper()
  scraper.proxies = {
  'http' : 'http://{}:{}'.format(proxy[0], proxy[1]),
  'https' : 'https://{}:{}'.format(proxy[0], proxy[1])
  }
  while True:
      while oo:
          try:
              scraper.get(uri)
              print(Fore.GREEN + "Bypassed")
              try:
                  for g in range(per):
                      scraper.get(uri)
                      print(Fore.GREEN + "Bypassed")
                  scraper.close()
              except:
                  scraper.close()
          except:
              scraper.close()
              print(Fore.RED + "failed")```

The cloudscraper module is patched, can't bypass new challenge of cloudflare maybe @jairoxyz can check it

jairoxyz commented 4 years ago

I'm not maintaining cloudscraper, just repacking for Kodi. Please report here https://github.com/VeNoMouS/cloudscraper.