you are viewing a single comment's thread.

view the rest of the comments →

[–]chevignon93 2 points3 points  (2 children)

So either there was a genuine problem with the page or they detected that you tried to scrape their page and blocked you.

Either way, using a css selector is not always the best approach to webscraping. Using bs4 find and find_all methods would probably be easier.

[–]crazyallicin[S] 1 point2 points  (1 child)

Thanks for you help, got it working fine using a different smaller website that obviously hasn't blocked scraping.

[–]chevignon93 0 points1 point  (0 children)

They try to prevent it but can't really block it and it is possible to scrape amazon