Skip to main content
============
PyInstapaper
============


.. image:: https://img.shields.io/pypi/v/pyinstapaper.svg
:target: https://pypi.python.org/pypi/pyinstapaper

.. image:: https://img.shields.io/travis/mdorn/pyinstapaper.svg
:target: https://travis-ci.org/mdorn/pyinstapaper

.. image:: https://readthedocs.org/projects/pyinstapaper/badge/?version=latest
:target: https://pyinstapaper.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

Instapaper_ is a tool for saving web pages to read later, e.g. offline on a
mobile device. PyInstapaper is a Python wrapper for the `full Instapaper API`_.

.. _Instapaper: https://www.instapaper.com
.. _full Instapaper API: https://www.instapaper.com/api

To use it, in addition to your Instapaper account username and password,
you'll need to request API credentials from Instapaper.

Usage
=====

.. code-block:: python

from pyinstapaper.instapaper import Instapaper, Folder

INSTAPAPER_KEY = 'MY_INSTAPAPER_API_KEY'
INSTAPAPER_SECRET = 'MY_INSTAPAPER_API_SECRET'
INSTAPAPER_LOGIN = 'me@example.com'
INSTAPAPER_PASSWORD = 'p@ssw0rd'

instapaper = Instapaper(INSTAPAPER_KEY, INSTAPAPER_SECRET)
instapaper.login(INSTAPAPER_LOGIN, INSTAPAPER_PASSWORD)

# Get the 10 latest instapaper bookmarks for the given account and do
# something with the article text
bookmarks = instapaper.get_bookmarks('starred')
for bookmark in enumerate(bookmarks):
do_something(bookmark.get_text())
bookmark.archive()

# Create a new folder
folder = Folder(instapaper, title='cool stuff')
result = folder.add()

Installation
============

To install PyInstapaper, simply:

.. code-block:: bash

pip install pyinstapaper

Additional info
===============

* Free software: MIT License
* Documentation: https://pyinstapaper.readthedocs.org.
* Boilerplate courtesy of cookiecutter: https://github.com/audreyr/cookiecutter
* Thanks to `Ryan Galloway`_ for pointing the way to using the Python oauth2
library for Instapaper's XAuth implementation, though ideally pyinstapaper
would use `requests-oauthlib`_

.. _Ryan Galloway: https://github.com/rsgalloway/instapaper
.. _requests-oauthlib: https://requests-oauthlib.readthedocs.org/en/latest/


=======
History
=======

0.1.0 (2015-09-26)
------------------

* First release on PyPI.

0.2.0 (2018-05-02)
------------------

* Python 3 compatibility
* Added 'have' param to get_bookmarks


Download files

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

Source Distribution

pyinstapaper-0.2.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyinstapaper-0.2.2-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyinstapaper-0.2.2.tar.gz.

File metadata

  • Download URL: pyinstapaper-0.2.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyinstapaper-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1048b29bc6a7160b433770267edc7d921908abe7d753e58975609f89f9db4aa1
MD5 5cdd40c11abd80833ab43798abe301cf
BLAKE2b-256 3ae71aa36dc62d32883c41a383e29b18329353829b601584ef72ee97ff5c91ce

See more details on using hashes here.

File details

Details for the file pyinstapaper-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyinstapaper-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9ead3390fff8d877e817d4dd3dacffe104c512e6b473bb75c14e5226bdfa52f2
MD5 48a0450a9fd84c794d69789e136571bd
BLAKE2b-256 5e0b0883ada9692b8398faf35cb20b8c3ca79cde71ec43f693beb1c453166462

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.1.0

2 files

Supported by

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