Issue
I am scraping 6 sites in 6 different spiders. But now, I have to scrape these sites in one single spider. Is there a way of scraping multiple links in the same spider??
Solution
I did this by
def start_requests(self):
yield Request('url1',callback=self.url1)
yield Request('url2',callback=self.url2)
yield Request('url3',callback=self.url3)
yield Request('url4',callback=self.url4)
yield Request('url5',callback=self.url5)
yield Request('url6',callback=self.url6)
Answered By - Adeena Lathiya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.