Anorov / cloudflare-scrape

A Python module to bypass Cloudflare's anti-bot page.
MIT License
3.38k stars 460 forks source link

Javascript is required. Please enable javascript before you are allowed to see this page. #303

Open johnwsjohnston opened 5 years ago

johnwsjohnston commented 5 years ago

Running python code from termux on android It use to work but has stopped working in the last 4 to 5 weeks

Before creating an issue, first upgrade cfscrape with pip install -U cfscrape and see if you're still experiencing the problem. Please also confirm your Node version (node --version or nodejs --version) is version 10 or higher.

node version v13.0.0

Make sure the website you're having issues with is actually using anti-bot protection by Cloudflare and not a competitor like Imperva Incapsula or Sucuri. And if you're using an anonymizing proxy, a VPN, or Tor, Cloudflare often flags those IPs and may block you or present you with a captcha as a result.

Please confirm the following statements and check the boxes before creating an issue:

Python version number

Run python --version and paste the output below: python 2.7.17

cfscrape version number

Run pip show cfscrape and paste the output below:

cfscrape 2.0.8

Code snippet involved with the issue

import sys import cfscrape scraper1 = cfscrape.create_scraper() rp=scraper1.get("http://ustvgo.tv") s1=str(rp.content) print s1

Complete exception and traceback

(If the problem doesn't involve an exception being raised, leave this blank)

URL of the Cloudflare-protected page

http://ustvgo.tv

[LINK GOES HERE]

URL of Pastebin/Gist with HTML source of protected page

[LINK GOES HERE]

OUTPUT FROM PRINT COMMAND IN CODE SNIPPET

You are being redirected...
visuxls commented 4 years ago

Hi, seems like we had the same issue. After further research, the website you listed is using Sucuri. You can find how I'm working around it here.