Quote:There are several tables on the page but to uniquely identify the one above,An ID is the only thing that can surely identify 100% from others. Sometimes you get lucky and the class name is the only one used in that tag you are searching for on that page, and sometimes you just have to pick the 4th table out from your results.
soup.find('table', {'class':'750WidthClass'})but if the other tables have that same class, then you will need to get them all, then get the nth number of the tables with that class.
tables = soup.find_all('table', {'class':'750WidthClass'}) print(tables[3])assuming it is the 4th table with that class
Recommended Tutorials: