Quantcast
Channel: CodeSection,代码区,Python开发技术文章_教程 - CodeSec
Viewing all articles
Browse latest Browse all 9596

A script for backing up your Instapaperbookmarks →

$
0
0
backup-instapaper

This is a python script for backing up your bookmarks from Instapaper. It mimics the HTML/CSV export function provided by Instapaper, but in script form.

Installation

This script can run in Python 2 or Python 3. Create a virtualenv and install dependencies:

$ git clone git@github.com:alexwlchan/backup-instapaper.git $ cd backup-instapaper $ virtualenv env $ source env/bin/activate $ pip install -r requirements.txt

You also need to get an OAuth key/secret for the Instapaper API. You can register for these on the Instapaper website .

Usage

Run the script, passing your username, password, and API keys as command-line flags:

$ python backup_instapaper.py --username=USERNAME --password=PASSWORD --oauthkey=OAUTHKEY --oauthsec=OAUTHSEC

This will write your bookmarks to instapaper_bookmarks.json .

For all the options, use the --help flag:

$ python backup_instapaper.py --help License

This script is licensed under the MIT license.


Viewing all articles
Browse latest Browse all 9596

Trending Articles