Omnivore API Client for Python
Project description
OmnivoreQL: Omnivore API client for Python
This is a Python client for the Omnivore API.
How to use
To use omnivoreql in your Python project, you can follow these steps:
Install the omnivoreql package using pip:
pip install omnivoreql
Import the package into your project and Create a new instance of the client:
from omnivoreql import OmnivoreQL
omnivoreql_client = OmnivoreQL("your_api_token_here")
Use the methods of the OmnivoreQL class to interact with the Omnivore API.
profile = omnivoreql_client.get_profile()
result = omnivoreql_client.save_url("https://www.google.com")
articles = omnivoreql_client.get_articles()
username = profile['me']['profile']['username']
slug = articles['search']['edges'][0]['node']['slug']
articles = omnivoreql_client.get_article(username, slug)
labels = omnivoreql_client.get_labels()
subscriptions = omnivoreql_client.get_subscriptions()
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
omnivoreql-0.1.5.tar.gz
(15.6 kB
view hashes)
Built Distribution
omnivoreql-0.1.5-py3-none-any.whl
(14.7 kB
view hashes)
Close
Hashes for omnivoreql-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ff260eb71ae239d00968a5272ea0c480423900be21ffa5f68cd74b63734cefb |
|
MD5 | 06beae6dd9bedebd110fb60a004be22e |
|
BLAKE2b-256 | e4fd0b5e912ff9820aa43b9d80866ca0bcae13ec14284a57a0069745fd8e3ef2 |