Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Force bs4 to use default parser, pt II
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Kelly committed Aug 16, 2015
1 parent 450a0c7 commit 7a84fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraping/new_mexico_tech_banweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def getTerm(semester, subjects, parser):
url = "http://banweb7.nmt.edu/pls/PROD/hwzkcrof.P_UncgSrchCrsOff?p_term="+t.getSemester()+"&p_subj="+subjectName.replace(" ", "%20")
print url
page = urllib2.urlopen(url)
soup = BeautifulSoup(page)
soup = BeautifulSoup(page, "html.parser")
trs = soup.findAll("tr")
trs = trs[1:] #discard the retarded row that banweb is retarded about
print_verbose("adding subject "+subjectName)
Expand Down

0 comments on commit 7a84fdb

Please sign in to comment.