You can just write a shell script, the content is as below.
I put it on /usr/local/bin/scrapy. Everything works fine
#! /usr/bin/python2.7
# path to python 2.7 (python 3 doesn't work well with scrapy atm)
import sys
import scrapy.cmdline
sys.exit(scrapy.cmdline.execute())
沒有留言:
張貼留言