Created
July 16, 2015 17:09
-
-
Save garrettdashnelson/98bbf055b2e0f0756605 to your computer and use it in GitHub Desktop.
Scrape call numbers for charged items from UW library account management page
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 | |
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