Skip to content

Commit

Permalink
text[@top="224"and @font="2"]
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbradshaw committed Jan 18, 2017
1 parent 313e0fa commit 08b40e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.py
Expand Up @@ -38,7 +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"
dateinspected = pdfroot.findall('.//text[@top="224"]')
dateinspected = pdfroot.findall('.//text[@top="224"and @font="2"]')
for i in dateinspected:
if i is not None:
print 'DATE MATCH? ', i.text.encode('ascii','ignore')
Expand Down

2 comments on commit 08b40e0

@font
Copy link

@font font commented on 08b40e0 Jan 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi there. Please be careful when you use @mention in your commit message as you inadvertently mention Github users with those usernames e.g. @top and @font notifies the users top and font. :)

@paulbradshaw
Copy link
Owner Author

@paulbradshaw paulbradshaw commented on 08b40e0 Jan 18, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.