Unable to create scrapy file

hey!..

image

image
i’m still not able to create a file

Hey @Lockhart, since we need to run this file using terminal, create .py file and not .ipynb

And than open terminal, go to the project directory, using cd command, like cd Desktop/myproject/
and than use the command, ‘scrapy crawl quotes’.

Hope this resolved your doubt.
Don’t forget to mark the doubt as resolved :blush:

image

umm…help!!
cannot create any file…
and as you said, i just need to change the extention to .py ryt?? or something else?

thanks …its done …i did some mistakes… :sweat_smile:

Hey @Lockhart, okk great.

Keep Learning :blush:

ok…a small question…i executed the code …the file created but its not showing any html code…instead …its showing
image
is this supposed to happen??
both the files are like this.

Hey @Lockhart, whenever you open html file in browser it will show you like this, means all basic formattings etc will be shown, if you will open it with, notepad text editor than you will see the code itself.
There’s no problem with this. This is perfectly fine.

Hope this resolved your doubt.
Plz mark it as resolved in my doubts section. :blush:

1 Like

now i made the json file …but the file is blank and the file is 0kb.
image
(all_quotes.json) is the file.
anything??

the same thing happened when i made a single file to… parse response to JSON

Hey @Lockhart, try running this code,

the file is still empty…

Hey @Lockhart, how you are running your spyder ?

image

anything??..

Hey @Lockhart, start a new scrapy project and than save this file in respected folder and than try it.