Newsi is Free News API is able to fetch local news and category news in real time.
Project description
python-newsi-news-api
Overview
Free News library for python is able to fetch local news and category news in real time.
Please email mohammedalaazakitayyem@gmail.com if you find any bugs. This api works by : Newsi
The News api
This news API supports local news and category news.
- Top Headlines news
- Local news
- World news
- business news
- sports news
- world news
- politics news
- technology news
- entertainment news
- science news
Supported-language-and-countries
pip install newsi
Supported-language-and-countries
To get the country and its supported language
newsi.
Local news
Make a get request specifying the local of news you want
Field | Description |
---|---|
language | The 2-letter ISO-639-1 code of the language you want to get headlines for. example: ar en es fr he ..... |
country | Find sources that display news in a specific country. Possible options: .eg us es fr in ..... |
sort | The order to sort the articles in :top = Fetch the top news.last = Fetch the latest news. |
page | Use this to page through the results. |
limit | Use this to customize the number of stories per page default = 20Max = 100 |
Category news
Make a get request specifying the Category of news you want
Field | Description |
---|---|
category | The category you want to get new for. Possible options:sport world business science_and_technology education entertainment health travel . |
language | The 2-letter ISO-639-1 code of the language you want to get headlines for. example: ar en es fr he ..... |
country | Find sources that display news in a specific country. Possible options: .eg us es fr in ..... |
sort | The order to sort the articles in :top = Fetch the top news.last = Fetch the latest news. |
page | Use this to page through the results. |
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
newsi-0.0.3.tar.gz
(3.5 kB
view hashes)