Crates.io | pickpocket |
lib.rs | pickpocket |
version | 0.1.1 |
source | src |
created_at | 2019-04-30 01:11:00.133724 |
updated_at | 2022-07-10 17:03:38.800238 |
description | Pickpocket: selects a random article from your Pocket (former Read It Later) |
homepage | https://github.com/tiagoamaro/pickpocket-rust |
repository | https://github.com/tiagoamaro/pickpocket-rust |
max_upload_size | |
id | 131098 |
size | 67,652 |
Pickpocket is a command line tool which will help you with your Pocket library. It selects a random article for you to read, opening your browser and marking it is deleted.
Pickpocket is distributed as a Rust crate, also having its Linux, MacOS and Windows binaries released on this repository.
Binaries for all OSes are available at the "releases page"
If you wish to run this CLI using Rust's cargo
:
cargo install pickpocket
cargo
's default install path. Example: ~/.cargo/bin/pickpocket status
To use Pickpocket, you first need to go through Pocket's OAuth authentication process.
pickpocket oauth
command
pickpocket authorize
command
pickpocket pick
-q
: quantity of articles to open. Examples:
pickpocket pick -q 10
(open 10 articles)pickpocket renew
pickpocket status
All Pickpocket files are stored at the ~/.pickpocket
folder.
library_file
authorization_token
oauth_token
Pickpocket ships with its own consumer key, which will ask for access to modify/retrieve your articles.
If you don't like this idea, you can use your own consumer key, setting up the POCKET_CONSUMER_KEY
environment variable before calling it.
Example:
POCKET_CONSUMER_KEY="my-consumer-key" pickpocket oauth
To know more about consumer keys and how Pocket deals with third party applications, read more on Pocket's Authentication API documentation.
MIT