Arias800 / CloudflareScraper

This is an experimental update of Team Universal's UniversalScrapers' cfscrape.py, which tries to solve a CF challenge with local Python code with as few imports as possible.
MIT License
11 stars 0 forks source link

Cloudflare change again #3

Closed Arias800 closed 5 years ago

Arias800 commented 5 years ago

Cloudflare change again there algorithm . Exemple here : http://japscan.to/

  File "C:\Users\...\AppData\Local\Programs\Python\Python37\lib\site-packages\CloudflareScraper\__init__.py", line 213, in <genexpr>
    str(sum(int(digit_char) for digit_char in digit_expression[1:-1])) # Strip the parenthesis.
ValueError: invalid literal for int() with base 10: 'c'
doko-desuka commented 5 years ago

Thanks @Arias800, I'll take a look.

doko-desuka commented 5 years ago

I'm on my phone right now, but it should work if you change the 'eval(eval(atob' string pattern to 'eval(eval(' (on line 130)

ebs111222 commented 5 years ago

@doko-desuka it works thank you and you fixed it over the phone?? you are the king !! thanks

bjgood commented 5 years ago

How did you do that, doko? On your phone? Impressive. Way to go. :D. It works.

Thanks for your site, Arias800.

doko-desuka commented 5 years ago

On Chrome for Android you need to use "view-source:https\:\/\/blabla.com" as the address and it'll show you the page source code as text.
The CF challenge code is (for the time being) still human readable.

Arias800 commented 5 years ago

Fix here : https://github.com/Arias800/CloudflareScraper/commit/00d2241650aab589c7ce867c347f298a90a7fefd#diff-bdff67e3f5690fd54e38e2cf40d61f1e Thanks @doko-desuka for your help ^^

bjgood commented 5 years ago

Much better, doko and Arias800. It works good as is. Pulls in a lot more results.

doko-desuka commented 5 years ago

Thanks for the patch @Arias800.