Skip to content

Instantly share code, notes, and snippets.

@garrettdashnelson
Created July 16, 2015 17:09
Show Gist options
  • Save garrettdashnelson/98bbf055b2e0f0756605 to your computer and use it in GitHub Desktop.
Save garrettdashnelson/98bbf055b2e0f0756605 to your computer and use it in GitHub Desktop.
Scrape call numbers for charged items from UW library account management page
from bs4 import BeautifulSoup
charged = open("charged.html","r")
soup = BeautifulSoup(charged, 'html.parser')
results = soup.find_all(class_="callnum")
n = []
for r in results:
n.append(r.contents)
n.sort()
print(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment