python - Scrapy如何爬取多个不同页面?
PHPz
PHPz 2017-04-18 09:26:21
0
2
681
PHPz
PHPz

学习是最好的投资!

reply all(2)
黄舟

If a and b are independent, divide them into two spiders. One spider can use multiple items, if necessary.

刘奇

If they are two independent target websites, it will be more flexible to write them separately.
If it is the same website, assuming you have two items respectively: item, item, there are many URLs to crawl. These URLs can be obtained through the parsing of both items. After you obtain the URL, you can make a new request. That's it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template