Anorov / cloudflare-scrape

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

Not working on opensea api #441

Open Augustinio opened 2 years ago

Augustinio commented 2 years ago

Python version number

Run python --version and paste the output below:

Python 3.7.12

cfscrape version number

Run pip show cfscrape and paste the output below:

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: anorov.vorona@gmail.com
License: UNKNOWN
Location: /Users/augustinlegalle/.local/share/virtualenvs/rar3-back-C9pCzAtR/lib/python3.7/site-packages
Requires: requests
Required-by:

Code snippet involved with the issue

    scraper = cfscrape.create_scraper(
        browser={
        'browser': 'chrome',
        'platform': 'android',
        'desktop': False
    }
    )
    print(f'{ASSET_BASE_URL}{collection}')
    print(scraper.get(
        f'{ASSET_BASE_URL}{collection}'
    ).content)

Complete exception and traceback

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

URL of the Cloudflare-protected page

https://api.opensea.io/api/v1/assets/?limit=50&asset_contract_address=0x976A145BcE31266d3Ed460a359330Dd53466db97

URL of Pastebin/Gist with HTML source of protected page

https://pastebin.com/S65aJWr0

btc520 commented 2 years ago

Same problem..

renektonwu commented 1 year ago

Me too, plz help.