Skip to content
Advertisement

Following links and crawling them

I was trying to make a crawler to follow links, with this code

JavaScript

I was able to get the links but the part of entering the links and getting the information I need was not working, so a friend helped me to come up with this code

JavaScript

It gets the json with the page items, but in loop number 230 it starts returning the following error and won’t leave the loop

JavaScript

What I’d like to do is, pass this all to a file so I can see if it’s getting all the items on the page I need and then leave a json with just the information I need, not everything from the site as it’s returning now

Advertisement

Answer

I after many sleepless nights solved my problem, I will leave it here in case it helps someone.

JavaScript

I just modified my code and didn’t use scrapy, just the selenium selectors.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement