Skip to main content

Client library for Miniflux REST API

Project description

https://travis-ci.org/miniflux/miniflux-python.svg?branch=master https://badge.fury.io/py/miniflux.svg

Python client library for Miniflux API.

Dependencies

  • Miniflux >= 2.x

  • Python >= 3.6

  • requests

Installation

pip install miniflux

Running Tests

pip install tox
tox

Usage Example

import miniflux

client = miniflux.Client("https://miniflux.example.org", "my_username", "my_secret_password")

# Get all feeds
feeds = client.get_feeds()

# Refresh a feed
client.refresh_feed(123)

# Discover subscriptions from a website
subscriptions = client.discover("https://example.org")

# Create a new feed, with a personalized user agent and with the crawler enabled
feed_id = client.create_feed("http://example.org/feed.xml", 42, crawler=True, user_agent="GoogleBot")

# Fetch 10 starred entries
entries = client.get_entries(starred=True, limit=10)

# Fetch last 5 feed entries
feed_entries = client.get_feed_entries(123, direction='desc', order='published_at', limit=5)

# Update a feed category
client.update_feed(123, category_id=456)

# OPML Export
opml = client.export()

Author

Frédéric Guillot

License

This library is distributed under MIT License.

Project details


Download files

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

Source Distribution

miniflux-0.0.9.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file miniflux-0.0.9.tar.gz.

File metadata

  • Download URL: miniflux-0.0.9.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/18.5 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10

File hashes

Hashes for miniflux-0.0.9.tar.gz
Algorithm Hash digest
SHA256 4542e5dabe1aeb59f465412a588096ec6dfc49c60334ed054f5c369495ee32f1
MD5 360edf438b43808448d834beb88b6c26
BLAKE2b-256 3d3cfbcd7b466c25bf1dfc09ddab8ff61276cfa2bccbf3ab44e7d9a0f5019014

See more details on using hashes here.

Supported by

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