Metadata-Version: 2.1
Name: pinboard-to-sqlite
Version: 1.2.0
Summary: Save data from Pinboard to a SQLite database
Home-page: https://github.com/jacobian/pinboard-to-sqlite/
License: WTFPL
Author: Jacob Kaplan-Moss
Author-email: jacob@jacobian.org
Requires-Python: >=3.6,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: click (>=7.0,<8.0)
Requires-Dist: python-dateutil (>=2.8.1,<3.0.0)
Requires-Dist: requests (>=2.22.0,<3.0.0)
Requires-Dist: sqlite-utils (>=1.12.1,<2.0.0)
Project-URL: Repository, https://github.com/jacobian/pinboard-to-sqlite/
Description-Content-Type: text/markdown

# Save data from Pinboard to a SQLite database.

Inspired by (and using libraries from) [Simon Willison's Dogsheep
project](https://github.com/dogsheep). You're probably going to want to run
[Datasette](https://github.com/simonw/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.

