13 lines
256 B
Python
Raw Normal View History

2025-05-28 19:16:17 +08:00
import os
import sys
# -*- coding: utf-8 -*-
from scrapy.cmdline import execute
dirpath = os.path.dirname(os.path.abspath(__file__))
sys.path.append(dirpath)
if __name__ == "__main__":
execute(['scrapy', 'crawl', 'wiki_spider', '-a', 'params={}'])