Apr-26-2018, 05:28 PM
Yes, the typical table ok to parse. The table in url below has one <tbody> with 100 <tr>s but cannot be found by following code
import requests from bs4 import BeautifulSoup url = 'https://www.theglobeandmail.com/investing/markets/stocks/market-leaders/' page = requests.get(url) soup = BeautifulSoup(page.content,"html.parser") table = soup.find_all("table") print(table[0]) for each_table in table: print(each_table.find("tbody"))