Save data from Pinboard to a SQLite database
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pinboard_to_sqlite-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0acd75a4a1a674a441fb413cec708791fe519f63c657b3f9b185dbab2d0c08f1 |
|
MD5 | 2fb497d24e6e3be1dd26102454c29a98 |
|
BLAKE2b-256 | 5c506fafacf6205b7162ee71f8ed206782bfbc6dc4161a0a8b088b501558d46d |