Skip to content

Instantly share code, notes, and snippets.

@robertbrook
Created March 9, 2011 09:04
Show Gist options
  • Save robertbrook/861913 to your computer and use it in GitHub Desktop.
Save robertbrook/861913 to your computer and use it in GitHub Desktop.
deposit_ref = ""
deposit_leg = ""
deposit_date = ""
if td.get('class') == "ref":
deposit_ref = td.text_content()
elif td.get('class') == "leg":
deposit_leg = td.text_content()
elif td.get('class') == "date":
deposit_date = td.text_content()
record = { "ref" : deposit_ref, "leg" : deposit_leg, "date" : deposit_date }
scraperwiki.datastore.save(["ref"], record)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment