scrape multiple addresses from multiple files in scrapy
问题 I have some JSON file in a directory. In any of this files, there are some information I need. the first property i need is the links list for "start_urls" in scrapy. every file is for a different process, so its output must be separate. So I can't put all the links in all the json files into start_urls and run them together. i have to run the spider for everyfile. how can i do this? here is my code so far: import scrapy from os import listdir from os.path import isfile, join import json