Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with getting a page #267

Closed
OmerBenGera opened this issue Jun 17, 2019 · 1 comment
Closed

Issue with getting a page #267

OmerBenGera opened this issue Jun 17, 2019 · 1 comment
Labels
duplicate outdated deps Errors associated with using an old peer dependency

Comments

@OmerBenGera
Copy link

Before creating an issue, first upgrade cfscrape with pip install -U cfscrape and see if you're still experiencing the problem.

Version number

Run pip show cfscrape and paste the output below:

Name: cfscrape
Version: 2.0.7
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/local/lib/python3.5/dist-packages
Requires: requests
Required-by:

Complete exception and traceback

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

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/cfscrape/__init__.py", line 294, in solve_challenge
    float(result)
ValueError: could not convert string to float: b'undefined'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mc-market.py", line 151, in <module>
    main()
  File "mc-market.py", line 35, in main
    get_request(WEBSITE_URL)
  File "mc-market.py", line 126, in get_request
    respond = scraper.get(url, headers=headers, allow_redirects=allow_redirects)
  File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cfscrape/__init__.py", line 128, in request
    resp = self.solve_cf_challenge(resp, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/cfscrape/__init__.py", line 181, in solve_cf_challenge
    answer, delay = self.solve_challenge(body, domain)
  File "/usr/local/lib/python3.5/dist-packages/cfscrape/__init__.py", line 297, in solve_challenge
    "Cloudflare IUAM challenge returned unexpected answer. %s" % BUG_REPORT
ValueError: Cloudflare IUAM challenge returned unexpected answer. Cloudflare may have changed their technique, or there may be a bug in the script.

URL of the Cloudflare-protected page

https://www.mc-market.org/

@ghost ghost added duplicate outdated deps Errors associated with using an old peer dependency and removed bug labels Jun 25, 2019
@ghost
Copy link

ghost commented Jun 25, 2019

Duplicate of #241, #256, #263

@ghost ghost closed this as completed Jun 25, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate outdated deps Errors associated with using an old peer dependency
Projects
None yet
Development

No branches or pull requests

1 participant