AKY King of Life

4 Mar 2022

Webscraping England Hockey Python BeautifulSoup


I am trying to BeautifulSoup to get the table found in this link: //

It's an England Hockey website and basically I want to download the table and put it in a DataFrame, and also eventually get the fixtures as well.

Whenever I try and find the right div or table, it returns None.

Here's what I have tried:

url = "//"
page = requests.get(url)

soup = BeautifulSoup(page.text, "html.parser")

I have tried to find the div the table is within, but it returns None.

bread_crumbs = soup.find("div", class_="container")

Again, I try to find the table but it returns None.

bread_crumbs = soup.find("table")

anyone can suggest a way to access the table, I would be grateful! It might be that Selenium would be better for this, but I haven't used Selenium yet so I am not sure how it would start.

As you can see from the link, it's a php website, so could this be part of the reason?


No Comments to show

© 2023 Copyrights reserved for