cloudflare-scrape icon indicating copy to clipboard operation
cloudflare-scrape copied to clipboard

Unable to identify Cloudflare IUAM Javascript on website. Cloudflare may have changed their technique, or there may be a bug in the script.

Open icepicknz opened this issue 5 years ago • 0 comments

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.

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:

  • [X ] I've upgraded cfscrape with pip install -U cfscrape
  • [X ] I'm using Node version 10 or higher
  • [X ] The site protection I'm having issues with is from Cloudflare
  • [X ] I'm not using Tor, a VPN, or an anonymizing proxy

Python version number

Run python --version and paste the output below:

Python 2.7.5

cfscrape version number

Run pip show cfscrape and paste the output below:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Name: cfscrape
Version: 2.1.1
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email: [email protected]
License: UNKNOWN
Location: /usr/lib/python2.7/site-packages
Requires: requests
Required-by: 

Code snippet involved with the issue

unsure, using sick chill which pointed me here

Complete exception and traceback

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

2020-05-04 21:28:45 INFO SEARCHQUEUE-BACKLOG- :: No needed episodes found during backlog search for: [The Amazing Race Australia] 2020-05-04 21:28:45 INFO SEARCHQUEUE-BACKLOG-248618 :: [IPTorrents] :: No NZB/Torrent providers found or enabled in the sickchill config for backlog searches. Please check your settings. AA AttributeError: 'exceptions.ValueError' object has no attribute 'request' AA if requests_exception.request: AA File "/opt/sickrage/sickbeard/helpers.py", line 1467, in handle_requests_exception AA handle_requests_exception(error) AA File "/opt/sickrage/sickbeard/helpers.py", line 1362, in getURL AA return getURL(url, post_data, params, self.headers, timeout, self.session, **kwargs) AA File "/opt/sickrage/sickchill/providers/GenericProvider.py", line 381, in get_url AA self.get_url(login_url, returns='text') AA File "/opt/sickrage/sickbeard/providers/iptorrents.py", line 86, in login AA if not self.login(): AA File "/opt/sickrage/sickbeard/providers/iptorrents.py", line 111, in search AA items_list += self.search(search_string, ep_obj=episode) AA File "/opt/sickrage/sickchill/providers/GenericProvider.py", line 177, in find_search_results AA searchResults = curProvider.find_search_results(show, episodes, search_mode, manualSearch, downCurQuality) AA File "/opt/sickrage/sickbeard/search.py", line 487, in searchProviders AA Traceback (most recent call last): 2020-05-04 21:28:45 ERROR SEARCHQUEUE-BACKLOG-248618 :: [IPTorrents] :: [c5ed827] Exception while searching IPTorrents. Error: AttributeError("'exceptions.ValueError' object has no attribute 'request'",) ```

## URL of the Cloudflare-protected page

http://www.iptorrents.com
https://iptorrents.eu

## URL of Pastebin/Gist with HTML source of protected page

http://www.iptorrents.com

icepicknz avatar May 04 '20 09:05 icepicknz