This module returns Latest News by category
Project description
LoremipsumPy
## This Package Returns Latest and top News Headlines from different sources of News by taking some argumentsInstallation
Run the follwoing to install
$pip install pyNewsApi
Usage
from pyNewsApi import PYNEWS
p = PYNEWS()
Get News by country codes
data = p.get_get_headlines_by_country(countrycode='in') or p.get_headlines_by_country('in')
print(data)
Get News by news provider name
data = p.get_headline_by_source(source='techradar') or p.p.get_headline_by_source('techradar')
print(data)
Get News by category and country name
data = p.get_head_by_cat_country(cat='technology',country='in') or p.get_head_by_cat_country('technology','in')
print(data)
Get Top headlines by giving query
data = p.get_top_headlines_about(query='apple') or p.get_top_headlines_about('apple')
print(data)
Get all news from all sources no need to take any arguments
data = p.get_from_all_sources()
print(data)
Get News by languages
data = p.get_by_lang(lang='fr') or p.get_by_lang('fr')
print(data)
get help for the module
p.get_help()
get all supported languages
p.display_langauges()
get country codes
p.display_country()
get categories
p.display_catcty()
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
Built Distribution
Hashes for pyNewsApi-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38f18a21b31b23efbda5813204aae72115b1d1b03b05feef7b17439026c30067 |
|
MD5 | f66e538cbbb25a005b49c4cd1f16f5b7 |
|
BLAKE2b-256 | 54895167dc70bc1c6e08df00217443537443efd4dd28e0e7c0e519caccecad19 |