miniflux api的客户端库
miniflux的Python项目详细描述
用于miniflux api的python客户端库。
依赖关系
- 微通量=2.x
- python=3.6
- 请求
安装
pip install miniflux
运行测试
pip install tox tox
用法示例
importminifluxclient=miniflux.Client("https://miniflux.example.org","my_username","my_secret_password")# Get all feedsfeeds=client.get_feeds()# Refresh a feedclient.refresh_feed(123)# Discover subscriptions from a websitesubscriptions=client.discover("https://example.org")# Create a new feed, with a personalized user agent and with the crawler enabledfeed_id=client.create_feed("http://example.org/feed.xml",42,crawler=True,user_agent="GoogleBot")# Fetch 10 starred entriesentries=client.get_entries(starred=True,limit=10)# Fetch last 5 feed entriesfeed_entries=client.get_feed_entries(123,direction='desc',order='published_at',limit=5)# Update a feed categoryclient.update_feed(123,category_id=456)# OPML Exportopml=client.export()
许可证
这个图书馆是在麻省理工学院的许可下发行的。