From 0d98fc5193fa1c03e864ba45b1ca947ad0cdb576 Mon Sep 17 00:00:00 2001 From: edipretoro Date: Sun, 28 Dec 2025 10:34:48 +0100 Subject: [PATCH] Fixing the recuperation of the title --- scrarls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrarls.py b/scrarls.py index b06a749..fbaa876 100644 --- a/scrarls.py +++ b/scrarls.py @@ -37,7 +37,7 @@ class TvShow(CrawlSpider): item = TvShowItem() item['article_id'] = article.attrib['id'], item['article_title'] = article.css('h1.entry-title > a::text').get(), - item['title'] = article.css('.entry-summary > p > strong::text').get(), + item['title'] = article.css('.entry-summary > p:nth-child(4) > strong::text').get(), item['date'] = article.css('.entry-meta-header-before::text').getall()[1].strip(), item['summary'] = article.xpath('.//div[@class="entry-summary"]/node()').extract(), item['image_url'] = article.css('.entry-summary > p > img::attr(src)').get(),