Skip to content

Tool to archive your Pocket reading list by number of days

License

Notifications You must be signed in to change notification settings

ngaloppo/pocket-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install the dependencies through pip:

mkvirtualenv pocket-archive
pip install -r requirements.txt

In order to use the pocket API, you have to register a new pocket app. Do this by following the relevant links in the Pocket developer docs.

Using this consumer key you will get an access token for the user by running the following:

python auth.py --key=<consumer-key>

Follow the instructions and the program will finish. Check your .creds file in the root directory of the project to make sure that it exists and has a consumer key and access token.

Usage

First, download your items to a json file, then run the archive script.

python pocket_to_json.py

This will output a JSON file called <timestamp>.json to your current directory.

Then, do a test run to observe the number of archived articles for a given number of expiration days. This will print out the number of to-be-archived days.

python pocket_archive.py --days <num_days> <timestamp>.json

Finally, effectively archive by passing the --archive option:

python pocket_archive.py --days <num_days> <timestamp>.json --archive

Note that all auto-archived items will be tagged with the old-unread tag.

About

Tool to archive your Pocket reading list by number of days

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages