This repository has been archived on 2023-10-20. You can view files and clone it, but cannot push or open issues or pull requests.
hf-key-scraper/huggingface/crawl-search.py

12 lines
306 B
Python

import coloredlogs
from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings
from huggingface.spiders.search import HFSearchSpider
if __name__ == "__main__":
process = CrawlerProcess(get_project_settings())
process.crawl(HFSearchSpider)
process.start()