Skip to content

Instantly share code, notes, and snippets.

@matthewhughes
Created July 4, 2013 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewhughes/5926542 to your computer and use it in GitHub Desktop.
Save matthewhughes/5926542 to your computer and use it in GitHub Desktop.
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')
@shyamsalimkumar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment