在begin.py中新增如下代码:
from scrapy import cmdline
cmdline.execute("scrapy crawl xasoftpark".split())
PyCharm -> Run -> Edit Configurations...
在begin.py中新增如下代码:
from scrapy import cmdline
cmdline.execute("scrapy crawl xasoftpark".split())
PyCharm -> Run -> Edit Configurations...