写入日志:
首先我的爬虫 name= article
scrapy crawl article -s LOG_FILE=wiki.log
输出为不同格式:
scrapy crawl article -o articles.csv -t csv
scrapy crawl article -o articles.json -t json
scrapy crawl article -o articles.xml -t xml