Skip to content
Advertisement

Struggling with Selenium as a new backend developer

I’m very new to web scraping and am trying to build an algorithm to pull all of the information from my school’s course catalog. What I have so far is:

JavaScript

I’ve had much more but keep running into Selenium errors about not being able to locate the information when it is correct. Can anyone get me on the right track? Trying to pull all of the information!

Cheers

Advertisement

Answer

I’ve played around with your code and used it as a base for something a bit more what you’d expect.

Try this:

JavaScript

In my terminal the output (it’s just a small part of it, as there’s lots) looks like this:

enter image description here

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