Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chainecho-1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for chainecho-1.0.tar.gz
Algorithm Hash digest
SHA256 1d793861b1f4e4092037f6125152e54dd42602a915ba27fa592a733730d4e6dd
MD5 c59997b17075cd717a04e72b18344c03
BLAKE2b-256 c15159995072b8470d80100f423a896f1ed33525b04e5c38d5f98f16b2f67e70

See more details on using hashes here.

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

Hashes for chainecho-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a98ac2e579e0cbb5661703060b984ac009ea2520442ddfae6c6bee39107f225e
MD5 44e0d6f27be95ac7b1d4e8ed24179673
BLAKE2b-256 2773111ac665081e7836a1f1fa611c57dc1f5d165b272c1c9aa1a7ea7bc7f7b1

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