https://github.com/florents-tselai/pocket-utils
CLI tools for interacting with the Pocket API
https://github.com/florents-tselai/pocket-utils
cli pocket-api
Last synced: 12 months ago
JSON representation
CLI tools for interacting with the Pocket API
- Host: GitHub
- URL: https://github.com/florents-tselai/pocket-utils
- Owner: Florents-Tselai
- Created: 2020-11-07T15:37:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T16:49:30.000Z (over 5 years ago)
- Last Synced: 2025-04-05T12:24:49.950Z (over 1 year ago)
- Topics: cli, pocket-api
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pocket-utils
CLI tools for interacting with the [Pocket API](https://getpocket.com/developer/docs/overview).
## Requirements
* [jq](https://github.com/stedolan/jq)
* [sqlite-utils](https://github.com/simonw/sqlite-utils)
* env variables required: `POCKET_CONSUMER_KEY`, `POCKET_ACCESS_TOKEN` . No simple solutions :( . You have to go through the [authentication process](https://getpocket.com/developer/docs/authentication)
## Examples
### pocket-get
Powerful and flexible wrapper around the API.
Supports all the params as found [here](https://getpocket.com/developer/docs/v3/retrieve).
Just pass pairs of param-values and will be handled appropriately.
Example:
`pocket-get state read favorite 1 count 10 detailType complete`
### pocket-get-dump
Just execute `pocket-get-dump` and you'll get a nice `pocket.db` SQLite database,
with all your Pocket data.
### pocket-add
### pocket-add-frontpages
Nicely `cron`-able script to add the front pages (and full edition) of several newspapers to your Pocket.
I personally have this executed every morning.
Makes it easier and faster to read content directly from Pocket.
### pocket-clear-tags
**DANGER**
This will remove ALL YOUR POCKET TAGS.
Why I need this?
Don't ask... Keep walking.