完整instapaper api的python包装器。
readwise-pyinstapaper的Python项目详细描述
Instapaper是一个保存网页以便以后阅读的工具,例如在 移动设备。pyinstapaper是用于full Instapaper API的python包装器。
要使用它,除了您的Instapaper帐户用户名和密码, 您需要从Instapaper请求API凭据。
用法
frompyinstapaper.instapaperimportInstapaper,FolderINSTAPAPER_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 textbookmarks=instapaper.get_bookmarks('starred')forbookmarkinenumerate(bookmarks):do_something(bookmark.get_text())bookmark.archive()# Create a new folderfolder=Folder(instapaper,title='cool stuff')result=folder.add()
安装
要安装pyinstapaper,只需:
pip install pyinstapaper
其他信息
- 自由软件:麻省理工学院许可证
- 文档:https://pyinstapaper.readthedocs.org。
- 厨师提供的样板:https://github.com/audreyr/cookiecutter
- 感谢Ryan Galloway为使用python oauth2指明了方向 用于instapaper的xauth实现的库,尽管理想情况下是pyinstapaper 将使用requests-oauthlib
历史
0.1.0(2015-09-26)
- pypi上的第一个版本。