Skip to content

Instantly share code, notes, and snippets.

@bmsleight
Created March 25, 2016 22:04
Show Gist options
  • Select an option

  • Save bmsleight/03d6e8f602b39c5e0a5d to your computer and use it in GitHub Desktop.

Select an option

Save bmsleight/03d6e8f602b39c5e0a5d to your computer and use it in GitHub Desktop.
from bs4 import BeautifulSoup
soup = BeautifulSoup(open("index.html"))
soup.find_all("span", class_="time")[270].a.get('href') # Get link to main vine page (which then needs parsing)
soup.find_all("span", class_="time")[270].a.text # Time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment