Skip to content
A utility to create cards in a reading board in Trello out of new items saved to Pocket, customized for personal reblogging workflow
Python
Branch: reblog
Clone or download
Pull request Compare This branch is 8 commits ahead, 13 commits behind OrBin:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
.gitignore
LICENSE
README.md
authorize_pocket.py
authorize_trello.py
main.py
requirements.txt

README.md

Pocket-To-Trello

A utility to create cards in a reading board in Trello out of new items saved to Pocket

About this Fork

I forked the original version from OrBin/Pocket-To-Trello to adapt it for my own workflow for reblogging interesting items:

  • I use a specific tag reblog in Pocket,
  • I want Pocket-To-Trello to copy those items to Trello,
  • After an item is copied it is archived in Pocket (so be careful when testing this version, as it will modify your Pocket list).

Other small changes:

  • Copy Pocket's tags as Trello labels,
  • Copy an item's first image (as used in Pocket) to the Trello card,
  • Do not add the Pocket URL as attachment.

Usage

Installing requirements

pip install -r requirements.txt

Get Pocket consumer key

Create a new Pocket app with "Retrieve" permission and save the generated consumer key for later use.

Get Trello API key

Visit here to get your Trello API key and save it for later use.

Creating a configuration file

A configuration file config.json should be placed in the same directory as the code files.

Here is an example of how the initial configuration file should look:

{
  "authentication": {
    "pocket_consumer_key": "YOUR-POCKET-CONSUMER-KEY",
    "trello_api_key": "YOUR-TRELLO-API-KEY",
  },
  "pocket_last_checked": 0,
  "trello_list_id": "YOUR-TRELLO-LIST-ID"
}

Authorizing with Pocket and Trello (Should be done only once)

Authorize with Pocket:

python authorize_pocket.py

Authorize with Trello:

python authorize_trello.py

Run

python main.py

(Optional) Add to cron

You can create a cron job with the following configuration to run the app every 10 minutes:

*/10 * * * * python /path/to/repository/Pocket-To-Trello/main.py

External packages

You can’t perform that action at this time.