My code is working and I’m getting 98%. How can I get 100%?
my code: https://ide.codingblocks.com/s/421185
Scrape a book store
hey @p8847220 ,
its basically because of scrapy. Its because of how it reads data from website.
There are many students facing the same problem.
SO to achieve 100 , try using beautifulsoup.
Thank You for the Help.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
This url gives 98% accuracy because of the change in the image url
http://books.toscrape.com/catalogue/page-1.html
This is the correct url which gives 100% result
http://books.toscrape.com/
last url gives first 20 image in this format so it achieves 100% accuracy
media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg
vs
first url gives first 20 image in this format so it achieves 98% accuracy
…/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg
I hope this helps