i'm trying to scrape that page "https://myanimelist.net/anime.php?letter=A" , i found information that i want but i would like to got i for every row and remove //n /n
for anime in tree.xpath('//*[@id="content"]/div[5]/table//tr'):
data = {"title" : anime.xpath("//strong//text()").extract(),
"synopsis" : anime.xpath("//td[2]//text()").extract(),
"type_" : anime.xpath("//td[3]//text()").extract(),
"episodes" : anime.xpath("//td[4]//text()").extract(),
"score" : anime.xpath("//td[5]//text()").extract()}
moreover, i'm even don't sure to catch every anime present on page. If someone can show me a css method too it would be great (in purpose to learn)
As asked, I'm just providing CSS examples of a few datapoints, while leaving the others for yourself to explore:
Some further info: https://www.w3schools.com/cssref/css_selectors.asp