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.
Release files for pinboard-to-sqlite 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pinboard-to-sqlite-1.2.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pinboard_to_sqlite-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / pinboard-to-sqlite-1.2.0.tar.gz
| Download URL | pinboard-to-sqlite-1.2.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b66fcfed1e56b3850b62ec192abfc2d22eef20dca7071700fdd7ef8a7ca0148d
|
|
BLAKE2b-256 checksum How to use checksums |
f25449d150d8ac45db4c96544c3a0744d28ebdb9a3e90b6e8db45d4047038b6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0b3 CPython/3.8.0 Linux/5.0.0-1023-azure
|
Release files / pinboard_to_sqlite-1.2.0-py3-none-any.whl
| Download URL | pinboard_to_sqlite-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0acd75a4a1a674a441fb413cec708791fe519f63c657b3f9b185dbab2d0c08f1
|
|
BLAKE2b-256 checksum How to use checksums |
5c506fafacf6205b7162ee71f8ed206782bfbc6dc4161a0a8b088b501558d46d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0b3 CPython/3.8.0 Linux/5.0.0-1023-azure
|