Skip to content
Advertisement

Is there any wrong in my css selection in this web scraping code?

My css selectors response.css('div.jhfizC') and ('a[itemprop="url"]') show 97 items in the web page, but my code is only scraping 35 items. Where is the fault?

Here is my code:

JavaScript

Advertisement

Answer

In the end of the url just put length 90 instead of 30 , length indicate 30 item per page.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement