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 16, 2017
1 parent 7351c30 commit d404e2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
lines = root.findall('.//text[@font="5"]')
record = {}
for line in lines:
#if the object is less than 4 characters long
#if the object is less than 5 characters long
if len(line.text)<5:
code = line.text
print record
#if the object is more than 4 chars
if len(line.text)>4:
record["location"] = line.text
record["code"] = code
Expand Down

0 comments on commit d404e2d

Please sign in to comment.