Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple python library utilizing the instapaper.com API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 instapaperlib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 HISTORY.rst
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

instapaperlib.py

Python library for the instapaper.com API.

http://instapaper.com

Usage

Use the library directly:

import instapaperlib

instapaperlib.auth("username", "password")
instapaperlib.add_item("username", "password", "URL", "title")
# with selection test set
instapaperlib.add_item("username", "password", "URL", "title", "selection")

Create an instance to work with:

from instapaperlib import Instapaper

i = Instapaper("username", "password")
i.auth()

Catch the return codes to work with:

from instapaperlib import Instapaper

i = Instapaper("username", "password")
(statuscode, statusmessage) = i.add_item("URL", "title")

Also catch the response header:

from instapaperlib import Instapaper

i = Instapaper("username", "password")
(statuscode, statusmessage, title, location) = i.add_item("URL", "title", response_info=True)

Or use the cli client:

instapaper.py -u user -p password -t title URL

If you have set your username:password in ~/.instapaperrc:

instapaper.py URL

Installation

Install via pip:

pip install instapaperlib

Or, if you must:

easy_install instapaperlib

Contributing

  • fork the repo
  • add your changes and tests so I don't accidentally break anything in the future
  • run the tests: python instapaperlib/instapaperlib.py
  • open a pull request (also runs the tests via Travis CI)
  • high-five yourself, you're awesome

Meta

Project: http://github.com/mrtazz/InstapaperLibrary
Issues: http://github.com/mrtazz/InstapaperLibrary/issues
Something went wrong with that request. Please try again.