fix: add AsyncFetcher to top-level shortcuts

This commit is contained in:
Karim shoair
2024-12-16 12:37:29 +02:00
parent d66ebc19a5
commit 05c6eeb387
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
# Declare top-level shortcuts
from scrapling.core.custom_types import AttributesHandler, TextHandler
from scrapling.fetchers import (CustomFetcher, Fetcher, PlayWrightFetcher,
StealthyFetcher)
from scrapling.fetchers import (AsyncFetcher, CustomFetcher, Fetcher,
PlayWrightFetcher, StealthyFetcher)
from scrapling.parser import Adaptor, Adaptors
__author__ = "Karim Shoair (karim.shoair@pm.me)"
@@ -9,4 +9,4 @@ __version__ = "0.2.9"
__copyright__ = "Copyright (c) 2024 Karim Shoair"
__all__ = ['Adaptor', 'Fetcher', 'StealthyFetcher', 'PlayWrightFetcher']
__all__ = ['Adaptor', 'Fetcher', 'AsyncFetcher', 'StealthyFetcher', 'PlayWrightFetcher']
+2 -1
View File
@@ -1,6 +1,7 @@
from .fetchers import Fetcher, PlayWrightFetcher, StealthyFetcher
from .fetchers import AsyncFetcher, Fetcher, PlayWrightFetcher, StealthyFetcher
# If you are going to use Fetchers with the default settings, import them from this file instead for a cleaner looking code
Fetcher = Fetcher()
AsyncFetcher = AsyncFetcher()
StealthyFetcher = StealthyFetcher()
PlayWrightFetcher = PlayWrightFetcher()