Skip to content

Instantly share code, notes, and snippets.

@kipronokoech
Created July 25, 2020 21:40
Show Gist options
  • Save kipronokoech/db38bc9663e5c3691fae72bf2e11be50 to your computer and use it in GitHub Desktop.
Save kipronokoech/db38bc9663e5c3691fae72bf2e11be50 to your computer and use it in GitHub Desktop.
# On site there are 3 tables with the class "wikitable"
# The following line will generate a list of HTML content for each table
gdp = soup.find_all("table", attrs={"class": "wikitable"})
print("Number of tables on site: ",len(gdp))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment