import scrapy
class TestSpider(scrapy.Spider):
name = 'test'
start_urls = ['https://go.twitch.tv/directory']
def parse(self, response):
for title in response.css('body'):
yield {'title': title.css('h3.tw-box-art-card__title::text').extract()}
for next_page in response.css('a::attr(href)'):
yield response.follow(next_page, self.parse)
It just crawls and scrapes https://go.twitch.tv/directory but doesn't put out any titles.
I'm new to Python so the problem is probably really obvious but I can't figure it out.