Python-Pocketmon: Tag Pocket articles based on the time required to read them.

Pocketmon

A script that tags my Pocket articles based on the time required to read them.

I thought of this some time ago, but then I found readruler.com which basically does the same thing, but you have to open it everytime you add new articles, whereas this script can be just run as cron job :)

Screenshots

Tags on each article

Tags list

Setup

1. Install a wrapper to Pocket's API

pip install git+https://github.com/felipecorrea/python-pocket

2. Getting a consumer key.

You can skip this step and just use the key of an application that I created: 44479-ea92cc886eed9b46660b84a4

Or

Create a new Pocket App & copy the consumer key of the application.

3. Getting an access token

$ git clone https://github.com/felipecorrea/python-pocket
$ python python-pocket/get_access_token.py

Enter your consumer key and allow access to the app in browser. This will print out your access token.

4. Update the configuration

cp config.py.example config.py

Store both the consumer key and access token in this new file.

5. Test whether it works

$ python pocketmon.py

It will tag all untagged articles.

Comments