Last active
April 13, 2018 14:26
-
-
Save victorhsanjos/48d7699e5b669c2dbb812f86e48a745c 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
from bs4 import BeautifulSoup | |
html_doc = """ | |
<tr> | |
<td>Dado 1</td> | |
<td>Dado 2</td> | |
</tr> | |
<tr> | |
<td>Dado 3</td> | |
<td>Dado 4</td> | |
</tr> | |
""" | |
soup = BeautifulSoup(html_doc, 'html.parser') | |
for tr in soup.find_all('tr'): | |
print(tr.get_text().strip()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment