Skip to main content

Simple program to back up Instapaper favorites in plaintext and html form.

Project description

Python script to back up clean text and full html versions of Instapaper bookmarks. Tested on ArchLinux, should work on other distros/OSX.

## Requirements

## Installation

The recommended method of installation is via pip:

pip install instacache

This will place instacache.py in your bin folder for easy access.

## Usage To use Instacache, you need an Instapaper subscription, which gives access to the full developer API as well as a consumer key and secret for OAuth. While I could conceivably ship mine with Instacache as this is an “app”, I don’t know how to keep that information secret in an open python script.

Create the file ~/.instacache/.credentials with the following contents:

[keys] consumer_key = <your consumer key> consumer_secret = <your consumer secret>

Then you can use the application as follows. After running instacache.py login once, you should be fine to run backup in a crontab.

usage: instacache [-h] [-f FILE] {login,user,backup} …

Cache Instapaper articles

optional arguments:
-h, --help

show this help message and exit

-f FILE, --file FILE

File in which to store instacache information

command:
{login,user,backup} command to issue

login login and create an oauth token user show the currently authed user backup back up instapaper articles

## TODO

Instacache was a pretty quick hack job. There’s a lot of things that could be better about it: * make code cleaner, follow Python naming conventions * (test and) handle error cases * allow backup of entire instapaper list in addition to single folder * remove wget dependency * migrate to Python 3

These are all “do them if they cause problems” TODOs for me, so if they are causing you problems, create an issue or shoot me an [email](mailto:filipkrynicki@gmail.com).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

instacache-0.2.1.tar.gz (18.0 kB view details)

Uploaded Source

File details

Details for the file instacache-0.2.1.tar.gz.

File metadata

  • Download URL: instacache-0.2.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for instacache-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b5fb80d40d2585770c1669ededf8e310ad73c7b09336c2d3c2417ab473f459c1
MD5 678a88c39fab0f6284dbd66dda4dfe4f
BLAKE2b-256 93b38e3b93fe7379ae29f4f33623caf51be5d01abc2f0fb4e09a5e363f184f28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page