Python script to back up clean text and full html versions of Instapaper bookmarks. Tested on ArchLinux, should work on other distros/OSX.
## Requirements
Python 2.x
wget (available through every Linux dist package manager, or [homebrew](http://mxcl.github.com/homebrew/) on Mac.
Instapaper [subscription](http://www.instapaper.com/subscription) for access to full API
## 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).
Metadata
Release files for instacache 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| instacache-0.2.3.tar.gz | 18.3 kB | Without provenance | Details |
Release files / instacache-0.2.3.tar.gz
| Download URL | instacache-0.2.3.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72b955c27a4f5137baab19e682e792bd53183e1c56ae22d0d7a85f94cfcadf7f
|
|
BLAKE2b-256 checksum How to use checksums |
190a3f591c5c177e965ad232cb506787106b73bc9a53d2794e6241f13a4bc49c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for instacache 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.