instapaperlib 0.4.0
Python library for the instapaper.com API
Python library for the instapaper.com API.
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
Meta
| Project: | http://github.com/mrtazz/InstapaperLibrary |
|---|---|
| Issues: | http://github.com/mrtazz/InstapaperLibrary/issues |
History
0.4.0 (2010-09-06)
- add support for JSONP
- add support for redirect=close
0.3.1 (2010-06-05)
- add doctest unit test
- catch exception in auth because of new query method
0.3.0 (2010-05-24)
- Choose between HTTP/HTTPS (HTTPS standard)
- Set selection for added URL
- proper use of auto-title parameter
- Response headers (Content-Location, X-Instapaper-Title) are returned
0.2.0 (2010-05-20)
- Restructured as python package
- PyPi compatibility
- Add CLI client
0.1.0 (2010-05-01)
- Basic library working
- Working add_item
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| instapaperlib-0.4.0.tar.gz (md5) | Source | 2010-09-06 | 3KB | 444 | |
- Author: Daniel Schauenberg
- Home Page: http://github.com/mrtazz/InstapaperLibrary
- License: MIT
- Package Index Owner: mrtazz
- DOAP record: instapaperlib-0.4.0.xml
