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

#loop through each item in 'lines'
Expand Down

0 comments on commit 381419e

Please sign in to comment.