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 ffc70a8 commit 4a39858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -40,7 +40,7 @@ def scrapepdf(url):
#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"]')
dateinspected2 = dateinspected.findall('.//text[@font="2"]')
dateinspected2 = pdfroot.findall('.//text[@font="2"]')
for i in dateinspected2:
if i is not None:
print 'DATE MATCH? ', i.text.encode('ascii','ignore')
Expand Down

0 comments on commit 4a39858

Please sign in to comment.