Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Jan 18, 2017
1 parent 08b40e0 commit 9dd6d6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.py
Expand Up @@ -38,6 +38,7 @@ def scrapepdf(url):
record['schoolname'] = schoolname[0].text.encode('ascii', 'ignore')

#Now the date, which is in <text top="224" left="661" width="147" height="18" font="2"
#This looks for TWO attributes
dateinspected = pdfroot.findall('.//text[@top="224"and @font="2"]')
for i in dateinspected:
if i is not None:
Expand Down

0 comments on commit 9dd6d6e

Please sign in to comment.