Skip to content

Instantly share code, notes, and snippets.

@tylerburdsall
Created September 6, 2017 22:54
Show Gist options
  • Save tylerburdsall/1e8c87be0cc139fd732530f52cddb4b7 to your computer and use it in GitHub Desktop.
Save tylerburdsall/1e8c87be0cc139fd732530f52cddb4b7 to your computer and use it in GitHub Desktop.
from urllib.request import urlopen
from bs4 import BeautifulSoup
website = 'https://saltandstraw.com/flavors/'
page = urlopen(website)
soup = BeautifulSoup(page, 'html.parser')
results = soup.findAll('div', attrs={'class':'entry-title'})
for title in results:
print(title.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment