Skip to content

Instantly share code, notes, and snippets.

@victorhsanjos
Last active April 13, 2018 14:16
Show Gist options
  • Save victorhsanjos/d7c7d1ecdab150444e6d1fe1aeea3b94 to your computer and use it in GitHub Desktop.
Save victorhsanjos/d7c7d1ecdab150444e6d1fe1aeea3b94 to your computer and use it in GitHub Desktop.
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