私はランダムな時間間隔を設定し、python/scrapy の反復の間にその関数を呼び出そうとしています
注: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