Python API Client for https://chainecho.me
Project description
chainecho
Python API Client for https://chainecho.me
Install
pip install chainecho
Usage
import chainecho
Get latest news and categories by calling chainecho API:
api_key = os.getenv("API_KEY")
api = chainecho.API(api_key)
news = api.getLatestNews(limit=20)
print(news)
categories = api.getCategories()
print(categories)
News response format is as the following:
| Field | Type | Description |
|---|---|---|
id |
integer | Unique ID |
ntype |
string | News Type |
nid |
integer | News ID |
guid |
string | News GUID |
published_on |
string | Published Date |
image_url |
string | News Thumbnail URI |
title |
string | News Title |
url |
string | News URI |
source_id |
integer | Source ID |
body |
string | Summary Content |
keywords |
string | Keywords |
lang |
string | Language |
category |
string | Categories |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chainecho-1.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chainecho-1.0.tar.gz.
File metadata
- Download URL: chainecho-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d793861b1f4e4092037f6125152e54dd42602a915ba27fa592a733730d4e6dd
|
|
| MD5 |
c59997b17075cd717a04e72b18344c03
|
|
| BLAKE2b-256 |
c15159995072b8470d80100f423a896f1ed33525b04e5c38d5f98f16b2f67e70
|
File details
Details for the file chainecho-1.0-py3-none-any.whl.
File metadata
- Download URL: chainecho-1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a98ac2e579e0cbb5661703060b984ac009ea2520442ddfae6c6bee39107f225e
|
|
| MD5 |
44e0d6f27be95ac7b1d4e8ed24179673
|
|
| BLAKE2b-256 |
2773111ac665081e7836a1f1fa611c57dc1f5d165b272c1c9aa1a7ea7bc7f7b1
|