Giter Club home page Giter Club logo

pinboard-to-sqlite's Introduction

Save data from Pinboard to a SQLite database.

Inspired by (and using libraries from) Simon Willison's Dogsheep project. You're probably going to want to run Datasette on the resulting db.

How to install

$ pip install pinboard-to-sqlite

Authentication

Run:

$ pinboard-to-sqlite auth

This will direct you to https://pinboard.in/settings/password to find your API token, which you'll then paste into the terminal. This'll get saved in an auth.json file, which subsequent commands will pick up.

To save to a different file, see the -a / --auth flag.

Fetching posts

Run:

$ pinboard-to-sqlite posts pinboard.db

Where pinboard.db is the name of the database you'd like to save posts to. Note that the API this uses has a rate limit of once per minute, so don't run this command more than once per minute (I don't know why you would). This doesn't seem to be enforced fairly loosely, but be careful anyway.

pinboard-to-sqlite's People

Contributors

jacobian avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.