Backup Pocket articles to dropbox.
From source:
go get -u github.com/msoap/pocket2dropbox
ln -s $GOPATH/bin/pocket2dropbox ~/bin/pocket2dropbox
- Get Pocket/Dorpbox app_id, keys and tokens - see links below.
- Create config file.
- Download wgethtml.pl to PATH dir.
- Add to cron:
0 * * * * pocket2dropbox
By config file ~/.config/pocket2dropbox.cfg
(example):
{
"pocket_key": "***",
"pocket_token": "***",
"db_client_id": "***",
"db_client_secret": "***",
"db_token": "***",
"get_since_days": 30,
"favorites": false
}
or through environment vars:
# Pocket settings
POCKET_KEY
POCKET_TOKEN
# Dropbox settings
DB_CLIENTID
DB_CLIENTSECRET
DB_TOKEN
options:
pocket2dropbox [options]
options
-favorites : save favorites articles only
-get-since-days=N : get articles since this days
-version
-help
wgethtml.pl - for download html
- Get pocket keys/tokens
- Get dropbox keys/tokens
- Pocket API
- Go client library for the Dropbox
- Save html page with embedding css/js/images in file
- Delete deleted articles in Pocket
- Rewrite wgethtml.pl on Go