I am trying to set random time interval and call that function between iteration in python/scrapy
Note: How to set Random time interval between iteration and function in python scrapy
import random
class MySpider(CrawlSpider):
def xxxxxx(self):
xxxxxx
def xxxx(self,response):
for list in lists:
for xxxxxxx:
item = example()
yield request
def xxxxxx(self, response):
item=response.meta['item']
return item