KonMari your Pocket tsundoku from the command line
Project description
pocketsnack
is a command line application offering various commands to make your Pocket account more manageable. You can de-duplicate your list, purge unwanted tags, and hide your enormous 'to be read' list in a special archive so that looking at your list doesn't become paralysing.
For help with commands see pocketsnack --help
, or check the README in the code repository.
tl;dr
- make sure you have installed a compatible Python version
pip install pocketsnack
(you may need to usepip3
instead)pocketsnack --config
- Add your Pocket API consumer key to the config file
pocketsnack --authorise
- You are now ready to enjoy using pocketsnack from any directory
Getting started
Creating a Pocket consumer key for your app
- Log in to Pocket in a web browser
- Go to
https://getpocket.com/developer
and click 'CREATE NEW APP' - Complete the form: you will need all permissions, and the platform should be Desktop (other), or Mac.
- Your new app will show a consumer key, which you need to paste into the first line in your config file.
Creating a configuration file
Before you can use pocketsnack
you need to create a configuration file. If you run any command (including simply pocketsnack
without an argument) when your configuration file doesn't exist, a new file will be created and will open in your default application for editing yaml
files. You must copy in the consumer key referred to above, and may adjust any other settings.
You can adjust most settings, but the defaults should be sensible for most users if you just want to get started.
setting | type | description |
---|---|---|
pocket_consumer_key | string | the consumer key provided by Pocket when you register your 'app' (see below) |
items_per_cycle | integer | how many items you want to bring in to the List from your tbr archive when using --lucky_dip |
archive_tag | string | the tag to use to identify items in your 'to be read' archive |
ignore_tags | list | a list of tag names - items with any of these tags will be ignored by --stash and remain in your Pocket List |
ignore_faves | boolean | if set to true favorited items will be ignored by --stash and remain in your Pocket List |
fave_dupes | boolean | if set to true the remaining (original) item will be favorited when duplicates are removed with --dedupe |
replace_all_tags | boolean | if set to true all tags will be removed by --stash when adding the archive_tag , except anything in retain_tags |
retain_tags | list | a list of tag names - these tags will not be removed by --purge , nor by --stash if replace_all_tags is set to true |
longreads_wordcount | integer | determines how long a 'longread' is. |
num_videos | integer | how many videos (if there are videos in your list) should be included in each --lucky_dip . This is a subset of item_per_cycle , not in addition to the total. |
num_images | integer | how many images (if there are images in your list) should be included in each --lucky_dip . This is a subset of item_per_cycle , not in addition to the total. |
num_longreads | integer | how many long reads (if there are long reads in your list) should be included in each --lucky_dip . This is a subset of item_per_cycle , not in addition to the total. The definition of a long read is determined by longreads_wordcount |
pocket_access_token | string | access token required to interact with the Pocket API. This will be updated when you run --authorise and should not be edited manually. |
Save and close when you're done. You can edit this file again at any time by running pocketsnack --config
.
Authorising your app with a Pocket access token
Pocket uses OAuth to confirm that your app has permission from your user account to do stuff in your account. This means you need to authorise the app before you can do anything else. Once you have copied your app consumer key into the configuration file, run pocketsnack --authorise
to get your token.
You should now have a line at the bottom of your config saying something like pocket_access_token: 'aa11bb-zz9900xx'
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pocketsnack-3.2.1.tar.gz
.
File metadata
- Download URL: pocketsnack-3.2.1.tar.gz
- Upload date:
- Size: 25.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15396c37fd0a88572393ed810d41be2fabe0fce014eea83c04771b4a38bc0253 |
|
MD5 | c952e6100a469b29f74dfa7bc204d071 |
|
BLAKE2b-256 | cbae2b3679f741f23539e4c028ea2b8ddee8b9fd967c3bbf0eae6e060f7807a1 |
File details
Details for the file pocketsnack-3.2.1-py3-none-any.whl
.
File metadata
- Download URL: pocketsnack-3.2.1-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8396673ab115aeaa358f2952b7de40592856d7d0d165fa1b278ca87587a76105 |
|
MD5 | 1733a0a3ceafbc252715c8938f10b0e1 |
|
BLAKE2b-256 | f5c94626d77bc7f69c241c460b9d7144eecf9a323fd18b0553a83b92b103cf99 |