instapaperlib.py
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
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.pyopen a pull request (also runs the tests via Travis CI)
high-five yourself, you’re awesome
Meta
- Project:
- Issues:
History
0.5.1 (2016-01-13)
fix travis.yml misconfig that only ran tests on master branch
0.5.0 (2016-01-13)
add support for new instapaper API
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
Metadata
Release files for instapaperlib 0.5.1
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 | Actions |
|---|---|---|---|---|
| instapaperlib-0.5.1.tar.gz | 4.5 kB | Without provenance | Details for instapaperlib-0.5.1.tar.gz |
Release files / instapaperlib-0.5.1.tar.gz
| Download URL | instapaperlib-0.5.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ca460cc41b978d5217cad149dec4227ed0793fa5a5c1217400206bd8601513c
|
|
BLAKE2b-256 checksum How to use checksums |
767eac8170f22b07ef32c637e5beb3d130ec6ab652fcdc0ce61aa859bbbb717d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for instapaperlib 0.5.1
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.