Last active
April 13, 2018 14:16
-
-
Save victorhsanjos/d7c7d1ecdab150444e6d1fe1aeea3b94 to your computer and use it in GitHub Desktop.
This file contains hidden or 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