Created
September 23, 2015 23:04
-
-
Save jbwincek/ef3f97db2be02aaedf8f 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 | |
import requests | |
def main(): | |
r = requests.get('http://www.soybomb.com/tricks/words/') | |
soup = BeautifulSoup(r.text, 'html.parser') | |
tags_with_words = soup.find_all('td') | |
for tag in tags_with_words: | |
if tag.string: | |
print(tag.string) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment