Calling Scrapy Spider from Django

后端 未结 1 1000
清歌不尽
清歌不尽 2021-02-10 01:06

I have a project with a django and scrapy folder in the same workspace:

my_project/
    django_project/
        django_project/
            settings.py
        a         


        
1条回答
  •  囚心锁ツ
    2021-02-10 01:51

    follow example from scrapy doc:

    from my_projec.scrapy_project.spiders import MySpider
    ...
    process.crawl(MySpider)
    

    0 讨论(0)
提交回复
热议问题