main.py 550 B

12345678910111213141516171819
  1. # -*- coding: utf-8 -*-
  2. __author__ = 'admin'
  3. __date__ = '2018/3/7 上午10:06'
  4. from scrapy.cmdline import execute
  5. import sys
  6. import os
  7. # print(os.path.dirname(os.path.abspath(__file__)))
  8. sys.path.append(os.path.dirname(os.path.abspath(__file__)))
  9. # execute(["scrapy", "crawl", "hg3535"])
  10. # execute(["scrapy", "crawl", "hg3535_supplement"])
  11. # execute(["scrapy", "crawl", "lanqiu"])
  12. # execute(["scrapy", "crawl", "tennis"])
  13. execute(["scrapy", "crawl", "bangqiu"])
  14. # execute(["scrapy", "crawl", "zhihu_sel"])
  15. # execute(["scrapy", "crawl", "lagou"])