Skip to content

Reference for youtube_dl_scraper/utils/registration.py

youtube_dl_scraper.utils.registration.register_scrapers

register_scrapers(scrapers_dict, *scraper_objs)

Register scrapers in the provided dictionary

Source code in youtube_dl_scraper/utils/registration.py
4
5
6
7
8
def register_scrapers(scrapers_dict, *scraper_objs):
    """Register scrapers in the provided dictionary"""
    for scraper in scraper_objs:
        if issubclass(scraper, BaseScraper):
            scrapers_dict[scraper.__name__.lower()] = scraper