Saturday, May 4, 2024
HomeCSSresponse.css Scrapy command returns no outcomes despite the fact that the objects...

response.css Scrapy command returns no outcomes despite the fact that the objects exists (python)


The url i am attempting to colect data is that this one:

https://www.abf.com.br/a-abf/franquias-associadas-abf/

CSS objects examples:

  • this one is okay, scrapy returns the objects: .list-francises
  • this one is not okay, scrapy returns an empty record: .card-all-franchises div:nth-child(1)

I am operating these instructions:

> scrapy shell 'https://www.abf.com.br/a-abf/franquias-associadas-abf/'

(opens the scrapy shell in my vscode terminal)

> response.css('.list-francises').getall()

(returns the record of objects)

> response.css('.card-all-franchises div:nth-child(1)').getall()

(returns an empty record)

I attempted to crawl at the least three different web sites and none of them had this kind of surprising outcomes.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments