fix: add AsyncFetcher to top-level shortcuts
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Declare top-level shortcuts
|
# Declare top-level shortcuts
|
||||||
from scrapling.core.custom_types import AttributesHandler, TextHandler
|
from scrapling.core.custom_types import AttributesHandler, TextHandler
|
||||||
from scrapling.fetchers import (CustomFetcher, Fetcher, PlayWrightFetcher,
|
from scrapling.fetchers import (AsyncFetcher, CustomFetcher, Fetcher,
|
||||||
StealthyFetcher)
|
PlayWrightFetcher, StealthyFetcher)
|
||||||
from scrapling.parser import Adaptor, Adaptors
|
from scrapling.parser import Adaptor, Adaptors
|
||||||
|
|
||||||
__author__ = "Karim Shoair (karim.shoair@pm.me)"
|
__author__ = "Karim Shoair (karim.shoair@pm.me)"
|
||||||
@@ -9,4 +9,4 @@ __version__ = "0.2.9"
|
|||||||
__copyright__ = "Copyright (c) 2024 Karim Shoair"
|
__copyright__ = "Copyright (c) 2024 Karim Shoair"
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['Adaptor', 'Fetcher', 'StealthyFetcher', 'PlayWrightFetcher']
|
__all__ = ['Adaptor', 'Fetcher', 'AsyncFetcher', 'StealthyFetcher', 'PlayWrightFetcher']
|
||||||
|
|||||||
@@ -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
|
# If you are going to use Fetchers with the default settings, import them from this file instead for a cleaner looking code
|
||||||
Fetcher = Fetcher()
|
Fetcher = Fetcher()
|
||||||
|
AsyncFetcher = AsyncFetcher()
|
||||||
StealthyFetcher = StealthyFetcher()
|
StealthyFetcher = StealthyFetcher()
|
||||||
PlayWrightFetcher = PlayWrightFetcher()
|
PlayWrightFetcher = PlayWrightFetcher()
|
||||||
|
|||||||
Reference in New Issue
Block a user