Skip to content
Advertisement

Scraping multiple website data from a table

I am practicing scraping website and inputting the information into a table. I imported the link, but I seem to be getting an error message based off the url.

JavaScript

The error message I received states:

JavaScript

I rechecked the url to run the code again, but I am still receiving this error message. Can someone please help me?

Advertisement

Answer

You need to either get rid of the loop, or your urls need to be in a list.

But more importantly, you need to go and review html and how to identify tags and attributes. There are not <td> tags in the html with class="Player", or class="Team", etc.

Look at this code, and look at the html to see how it iterates through it.

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