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
from uninews import NewsFeed
from TheNewsApi import set_app_info
set_app_info(appkey=mykey)
nf = NewsFeet('TheNewsApp')
x = nf.news()
print(x)
x = nf.topstorys()
print(x)
x = nf.headline()
print(x)
x = nf.topic('business')
print(x)
Features
NewsFeed provide four type news get methods: news: get news from the specified provider
topic: get topiced news from the specified provider
headline: get headline news from the specified provider
topstory: get top story news from the specified provider
if the method do not provide the method, it will return None
Return data structure
All the data return by those four method is the same, the top structure are a dict type with following key:
- total total record returned
- page current page of the data
- articles a array contain all the articles
article is a dict contains following keys:
- title the article's title
- description the summary description
- content the article body
- link the url address to the article
- img_link the article image url address
- video_link the video url address of article
- publish_date the article publish date
provider
it must implments uninews four same name method
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
uninews-0.0.2.tar.gz
(4.0 kB
view hashes)