wiseflow/core/custom_fetchings
2025-01-05 18:12:36 +08:00
..
__init__.py v0.3.6 mockup 2025-01-04 23:36:18 +08:00
README_EN.md v0.3.6 release 2025-01-05 18:12:36 +08:00
README.md v0.3.6 release 2025-01-05 18:12:36 +08:00

Custom Scraper Registration

Register in core/scrapers/__init__.py, for example:

from .mp import mp_scarper

customer_scrapers = {'mp.weixin.qq.com': mp_scarper}

Note that the key should use the domain name, which can be obtained using urllib.parse:

from urllib.parse import urlparse

parsed_url = urlparse("site's url")
domain = parsed_url.netloc