scrapfly / python-scrapfly

Scrapfly Python SDK for headless browsers and proxy rotation
https://scrapfly.io/docs/sdk/python
Other
28 stars 8 forks source link

raise_on_upstream_error=False does not work #3

Closed louisabraham closed 3 years ago

louisabraham commented 3 years ago

Hi, I tried

api_response: ScrapeApiResponse = scrapfly.scrape(
    scrape_config=ScrapeConfig(url="https://louisabraham.github.io/404error", raise_on_upstream_error=False)
)

but it raised

ScrapflyScrapeError: 404 404 - Not Found: Upstream respond with http code >= 299. Learn more: https://scrapfly.io/docs/scrape-api/error/ERR::SCRAPE::BAD_UPSTREAM_RESPONSE
jjsaunier commented 3 years ago

Hey,

Should be fixed in 0.7.5, you can run pip install scrapfly-sdk -U to upgrade