Scrape a Book Store

Here is my code :


I am getting an empty csv file while i am executing this code using scrapy crawl Scrape_Book_Store -o “Books.csv”

hey @naazsayma123 ,
can you please share your full repository on drive link and share that link with me.
It would be a bit easier for me to debug the whole once.

Thank You :slightly_smiling_face:.

@prashant_ml
drive link:
https://drive.google.com/file/d/1_J1OleI_ucb3bL1prL6SaciheSr_fENo/view?usp=sharing

You might have created a full repository/directory of this scrapy project ,
I am asking to upload that full directory on drive and share me the link.
Code you uploaded is ok.

@prashant_ml
https://drive.google.com/drive/folders/1gKwK-VHppjn5f7tkpAM7eYhped0dIXWe?usp=sharing

hey @naazsayma123 ,
did you directly made this code file or used scrapy command to create a project first. ?

@prashant_ml
I used scrapy command to create a project first

so , that i only asked naa…
upload that full project not just the selected files.
I need to check the project default files , as we need to make some changes in that.

@prashant_ml
okay
here is complete project
https://drive.google.com/drive/folders/1D4taex2A6OKZgzTPxh6bC2RmR0nfHUuK?usp=sharing

can you please share a screenshot of its run also.

Thank You.

@prashant_ml
screenshot of running code :

@prashant_ml
please help to solve this challenge

yeah i am checking this only currently.
Sorry for so much delay.

can you please check there might another scrapy file ( .txt ) containing the configurations

No there is no other file

okay, checking it.
Thank You :slightly_smiling_face:.

hey @naazsayma123 ,
There were a lot of changes to be made in the spider code.
First thing you need to remember is that , while creating spiders you need to pay attention to what names are you providing to them , you can name anything to the file , but not the classes or function you make inside them.
So i just your full project an uploaded on drive.
have a look here https://drive.google.com/drive/folders/1RD6sC9IQQY-c3owP5zartUO12Fz6AV4d?usp=sharing

I hope this helps you now.

what are the changes i have to made in my spider code

check the main code file.
Your name (most important) variable of class, scrapy.Requests was changed to ‘scrapy.Request’ and some minor syntax issues.

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.