Skip to main content

a unitts driver for ios device, it use AVFoundation.AVSpeechSynthesizer

Project description

uninews

a universal news feed api for all news provider

Installation

pip install uninews

Supported providers

Usage

Using thenewsapi provider

from uninews import NewsFeed
from TheNewsApi import set_app_info

set_app_info(appkey=mykey)
nf = NewsFeet('TheNewsApp')
x = nf.last_news()
print(x)
x = nf.hist_news()
print(x)
x = nf.sources()
print(x)

Features

NewsFeed provide four type news get methods: last_news: get last news from the specified provider

hist_news: get history news from the specified provider

sources: get the provider's sources of news

if the provider do not provide the method, it will return None

Return data structure

News data

The news data return by last_news() and hist_news() methods are the same, t is a dictionary data which contains:

  1. total total record returned
  2. articles a array contain all the articles

Article data

article is a dict contains following keys:

  1. title the article's title
  2. description the summary description
  3. content the article body
  4. link the url address to the article
  5. img_link the article image url address
  6. video_link the video url address of article
  7. publish_date the article publish date
  8. countries countries of the article
  9. categories categories of the article
  10. author article's author
  11. source_id source id of the article
  12. language article's language

sources data

  1. total
  2. sources

source data

  1. id
  2. name
  3. link
  4. language
  5. categories
  6. description
  7. countries

provider

the following provider is tested

working on provider

  • google feed news provider

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

uninews-0.0.9.tar.gz (4.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: uninews-0.0.9.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for uninews-0.0.9.tar.gz
Algorithm Hash digest
SHA256 613261bdeb996a2de2415fb5237d71eb477c643601f0f8603ff40555aa5f1e8c
MD5 ef7f6228fcccd3a7f1688d977b28644c
BLAKE2b-256 e87320c34f25e38d3cda93fe272643706e3a8e99711cf908bfcf6238e0239fca

See more details on using hashes here.

Supported by

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