🕷️ 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
refactor(DynamicFetcher): Cleaner exit for fetch
Karim shoairfc530677de70
diff --git a/scrapling/fetchers.py b/scrapling/fetchers.pyindex 0619f15..6972924 100644--- a/scrapling/fetchers.py+++ b/scrapling/fetchers.py@@ -337,9 +337,7 @@ class DynamicFetcher(BaseFetcher):wait_selector_state=wait_selector_state,adaptor_arguments={**cls._generate_parser_arguments(), **custom_config},) as session:- response = session.fetch(url)-- return response+ return session.fetch(url)@classmethodasync def async_fetch(@@ -423,9 +421,7 @@ class DynamicFetcher(BaseFetcher):wait_selector_state=wait_selector_state,adaptor_arguments={**cls._generate_parser_arguments(), **custom_config},) as session:- response = await session.fetch(url)-- return response+ return await session.fetch(url)PlayWrightFetcher = DynamicFetcher # For backward-compatibility