Created
July 4, 2013 10:12
-
-
Save matthewhughes/5926542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def submit_to_scraperwiki(identity, title, latitude, longitude, url): | |
result = {"id" : identity, "title" : title, "latitude" : latitude, "longitude" : longitude, "url" : url} | |
scraperwiki.sqlite.save(UNIQUE_KEYS, result, 'kittens') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what does the UNIQUE_KEYS stand for? Please explain its use. In your tutorial I saw no reference to it, but you code contains a dict with the same name.