Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
seananaidu committed Feb 19, 2017
1 parent 29c8649 commit e79f43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scraper.py
Expand Up @@ -33,9 +33,9 @@
# # If the element is tagged as text, print our that text and its attribute
if el.tag == "text":
if int(el.attrib['left']) == 56: data = { 'State': el.text }
elif int(el.attrib['left']) < 238 && int(el.attrib['left']) > 210: data['Colonies_start'] = el.text
elif int(el.attrib['left']) < 355 && int(el.attrib['left']) > 320: data['Colonies_max'] = el.text
elif int(el.attrib['left']) < 450 && int(el.attrib['left']) > 420: data['Colonies_lost'] = el.text
elif int(el.attrib['left']) < 238 & int(el.attrib['left']) > 210: data['Colonies_start'] = el.text
elif int(el.attrib['left']) < 355 & int(el.attrib['left']) > 320: data['Colonies_max'] = el.text
elif int(el.attrib['left']) < 450 & int(el.attrib['left']) > 420: data['Colonies_lost'] = el.text
elif int(el.attrib['left']) < 560: data['Percent_lost'] = el.text
elif int(el.attrib['left']) < 660: data['Colonies_added'] = el.text
elif int(el.attrib['left']) < 760: data['Colonies_renov'] = el.text
Expand Down

0 comments on commit e79f43a

Please sign in to comment.