test cloudscraper dev

This commit is contained in:
marco
2019-12-04 20:37:44 +01:00
parent 0ca9a07dd0
commit c313b27b27
27 changed files with 1 additions and 28243 deletions
+1 -4
View File
@@ -409,10 +409,7 @@ def downloadpage(url, **opt):
"""
load_cookies()
import requests
if 'Linux' in os.environ['OS'] and 'ANDROID_STORAGE' not in os.environ and config.get_platform(True)['num_version'] > 18.2:
from lib.cloudscraper import cloudscraper
else:
from lib.cloudscraper import cloudscraper_mod as cloudscraper
from lib import cloudscraper
# Headers by default, if nothing is specified
req_headers = default_headers.copy()