Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jbwincek
Created September 23, 2015 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbwincek/ef3f97db2be02aaedf8f to your computer and use it in GitHub Desktop.
Save jbwincek/ef3f97db2be02aaedf8f to your computer and use it in GitHub Desktop.
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