Skip to content

Instantly share code, notes, and snippets.

@felipejardimf
Last active July 29, 2020 14:17
Show Gist options
  • Save felipejardimf/d59875ce28097a1aab390ca73bb129ee to your computer and use it in GitHub Desktop.
Save felipejardimf/d59875ce28097a1aab390ca73bb129ee to your computer and use it in GitHub Desktop.
data = []
cols = [x.text for x in tabela_covid.findAll('th')]
rows = tabela_covid.findAll('tr')
for row in rows:
data_rows=row.findAll('td')
data_rows= [ele.text.strip() for ele in data_rows]
data.append([ele for ele in data_rows])
print(cols)
print(rows)
print(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment