🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
fix(requests): handle missing type hint returned by curl-cffi
Karim shoaireaf7ec2cc06f
diff --git a/scrapling/engines/static.py b/scrapling/engines/static.pyindex 1f4b09b..a962ccf 100644--- a/scrapling/engines/static.py+++ b/scrapling/engines/static.py@@ -250,6 +250,7 @@ class _SyncSessionLogic(_ConfigurationLogic):request_args = self._merge_request_args(stealth=stealth, proxy=proxy, **kwargs)try:response = session.request(method, **request_args)+ assert response is not Noneresult = ResponseFactory.from_http_request(response, selector_config, meta={"proxy": proxy})return resultexcept CurlError as e: # pragma: no cover