so I have the following Scrapy Spider in spiders.py
import scrapy
class TwitchSpider(scrapy.Spider):
name = "clips"
def start_requests(self):
urls = [
f'https://www.twitch.tv/wilbursoot/clips?filter=clips&range=7d'
]
def parse(self, response):
for clip in response.css('.tw-tower'):
yield {
'title': clip.css('::text').get()
}
But the key aspect is that I want to call this spider as a function, in another file, instead of using scrapy crawl quotes
in the console. Where can I read more on this, or whether this is possible at all? I checked through the Scrapy documentation, but I didn't find much