Scrapy Pepperfry

why is it showing error???

Hey @Bhawna, if this command poses problem again and again, use this command in terminal only.

But ,Pepperfry folder with all files is created even after this error in using jupyter-notebook
and on cmd no error
output:

You can start your first spider with:
cd Pepperfry12
scrapy genspider example example.com
Why is it happening?

Hey @Bhawna, didn’t get it may be some hardware issue, doesn’t happen usually.

Sir ,I am not getting this code in “Pepperfry”
for i in range(len(items)):
d = {
“dir_name” : dir_names[i]
}
resp = scrapy.Request(url = urls[i],callback = self.parse, dont_filter = True)
resp.meta[‘dir_name’] = dir_names[i]
yield resp
Also lines below it involving xpath ?
@S18CRX0120

Hey @Bhawna, for lines below xpath, you need to go through this your self, as said by the mentor.

for i in range(len(items)):
d = {
“dir_name” : dir_names[i]
}

In the above code we have created a dicitonary for the current element which will have key = dir_name and value as address of the directory.
Rest 2 lines are self explanatory.

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

ok …:cry:

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.