Skip to content

Instantly share code, notes, and snippets.

@simonw
Last active February 5, 2019 16:50
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 simonw/e7056ee064a2aa9123a8acb6506b24db to your computer and use it in GitHub Desktop.
Save simonw/e7056ee064a2aa9123a8acb6506b24db to your computer and use it in GitHub Desktop.
csvs-to-sqlite https://candidates.democracyclub.org.uk/media/candidates-all.csv \
--table=candidates \
-c election \
-f name \
-f party_name \
-f post_label \
democracyclub.db
datasette publish heroku democracyclub.db \
--name="democracyclub-datasette" \
--title="Democracy Club" \
--source="Democracy Club" \
--source_url="https://candidates.democracyclub.org.uk/" \
--license="CC-BY-SA" \
--license_url="https://creativecommons.org/licenses/by-sa/3.0/"
@simonw
Copy link
Author

simonw commented Feb 5, 2019

@davorg
Copy link

davorg commented Feb 5, 2019

That second link should be https://github.com/simonw/csvs-to-sqlite

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