Last active
July 29, 2020 14:17
-
-
Save felipejardimf/d59875ce28097a1aab390ca73bb129ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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