Extracting Number of comments

python

#1

Hi,

How to Extracting Number of comments in Web Scraping in Python using Scrapy (with multiple examples)
I use “response.css(”.tagline.flat_list buttons.first").extract_first()" , but doesn’t show any single comment.

Please tell me how to extract the comment?

Regard’s
Aarti Gadewar


#2

Hi @aarti21

Sure. We are here to help. Can you please let us know the html structure of the page (or perhaps the link) and your complete code. Its really hard to assist web scrapping with given information. Thanks!


#3

In that link, i had run whole coding ind it was worked properly. You given one task for us like extract the comments from selected website( your selected website is game of throne). In that i wants to know how to extract the comments.


#4

How to exit from scrapy shell? Please give me the structure of this


#5

response.xpath(’//li[@class = “first”]/a/text()’).extract()