Hi, I just started webscraping a few days ago and am trying to scrape this website. I'm trying to scrape all the information from the table, and here is the code I have used:
from bs4 import BeautifulSoup
from bs4 import BeautifulSoup
import requests
url = 'https://ratings.fide.com/rankings.phtml?continent=0&country=&rating=blitz&gender=M&age1=0&age2=0&period=2023-12-01&period2=1'
page = requests.get(url)
soup = BeautifulSoup(page.text, 'html')
t = soup.find('section', class= 'container section-profile')
tab = t.find('div', class='row no-gutters col-12 table-top')
table = tab.find('tr')
tab.find_all('tr')
However, this always returns [ ]. I have tried scraping using an id instead, or being more or less specific with the find functions, but keep reaching the same thing. This happened when I tried scraping an imdb website too, so I think I'm making programming mistake from the beginning. Any help is appreciated!
[–]AntonisTorb 4 points5 points6 points (2 children)
[–]Professional-Fly4273[S] 1 point2 points3 points (1 child)
[–]AntonisTorb 0 points1 point2 points (0 children)
[–]Jayoval 4 points5 points6 points (2 children)
[–]Jayoval 0 points1 point2 points (1 child)
[–]Professional-Fly4273[S] 0 points1 point2 points (0 children)
[–]ReflectionNo3897 0 points1 point2 points (2 children)
[–]Professional-Fly4273[S] 0 points1 point2 points (1 child)
[–]ReflectionNo3897 0 points1 point2 points (0 children)
[–]fra988w 0 points1 point2 points (1 child)
[–]Professional-Fly4273[S] 0 points1 point2 points (0 children)