11 lines
229 B
Python

# -*- coding: utf-8 -*-
import os
import sys
from scrapy.cmdline import execute
dirpath = os.path.dirname(os.path.abspath(__file__))
sys.path.append(dirpath)
execute(['scrapy', 'crawl', 'TaobaoUserSpider', '-a', 'params={}'])