this your used in new project or the previous one ?
Cannot get a response from the crawler.!
The way you made your previous code , is correct and works too .
its just that, i don’t know why your code wasn’t running for you.
this one is new project.
rather than using the command:
scrapy genspider spider quotes.toscrape.com/
in my previous file:
I made a new file using quotes.py in myfile folder.
okay so try one thing now.
scrapy startproject myfile
scrapy genspider myfile
( now paste your previous code in the .py spider file made )
scrapy crawl myfile
run these commands and try once again.
yes I did all these commands in the previous file after i got all these results in my new file.
Only one thing that is disturbing in both the files was that “for loop”, that loop is making all the problem of not getting any resultant file.
is there a possibility that there maybe some updates in python or scrapy modules that maybe leading to that kind of problem??!!
An update:
I tried updating my coding to find out about the errors:
I found that the loop was working fine… the error was coming from the function “def start_request” only,
when i deleted that and the required changes in then the for loop statement as:
from:
scrapy.Request(url = i, callback = self.parse)
to
scrapy.Request(url = i)
now the scrapy is working fine…
now i do know how it is working, what i don’t know is why it is not working if i add the def function and the callback??
i don’t think that should effect in this manner.
Now toh you are confusing me too on this. Will check it once on teamviewer , that would be good .
yes thats good for me too!!
Sorry, for creating all this confusion!!
is this issue resolved now ?
no its still there…
okay. Then just ping me on 8630831390 , we will discuss a time to connect on team viewer to get this done.
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.