Using one Scrapy spider for several websites

后端 未结 4 437
南方客
南方客 2020-12-08 11:47

I need to create a user configurable web spider/crawler, and I\'m thinking about using Scrapy. But, I can\'t hard-code the domains and allowed URL regex:es -- this will inst

4条回答
  •  醉酒成梦
    2020-12-08 12:44

    Shameless self promotion on domo! you'll need to instantiate the crawler as given in the examples, for your project.

    Also you'll need to make the crawler configurable on runtime, which is simply passing the configuration to crawler, and overriding the settings on runtime, when configuration changed.

提交回复
热议问题