def parse(self, response): first_post = response.xpath('//article/div[1]/div/div[2]') link = first_post.css('a::attr(href)').get() if link is not None and textHasCovid(first_post.get()): yield response.follow(link, self.parse_post) for item in response.css('tr'): link = item.css('a::attr(href)').get() if link is not None and textHasCovid(item.get()): yield response.follow(link, self.parse_post)
def parse(self, response): for item in response.css('li.dfwp-item'): link = item.css('h3 a::attr(href)').get() if link is not None and textHasCovid(item.get()): yield response.follow(link, self.parse_post)
def parse(self, response): for item in response.css('article div.grve-post-content'): link = item.css('a.grve-read-more::attr(href)').get() if link is not None and textHasCovid(item.get()): yield response.follow(link, self.parse_post)
def parse(self, response): for item in response.xpath( '//div[@class="vpadcontentdiv"]/table[1]/tr'): link = item.css('a.newsheader::attr(href)').get() if link is not None and textHasCovid(item.get()): yield response.follow(link, self.parse_post)