Metadata-Version: 2.1
Name: pyNewsApi
Version: 0.0.2
Summary: This module returns Latest News by category
Home-page: https://github.com/Ammyy9908/pyNews
Author: Sumit
Author-email: sb78639@gmail.com
License: GNU General Public License v2 or later (GPLv2+)
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests
Provides-Extra: dev
Requires-Dist: pytest (>=3.7) ; extra == 'dev'

<h1>LoremipsumPy</h1>
## This Package Returns Latest and top News Headlines from different sources of News by taking some arguments

## Installation

Run the follwoing to install

$pip install pyNewsApi

## Usage

>>from pyNewsApi import PYNEWS

>>p = PYNEWS()<br/>

## Get News by country codes
>>data = p.get_get_headlines_by_country(countrycode='in') or p.get_headlines_by_country('in')<br/>
>>print(data)<br/>

## Get News by news provider name

>>data = p.get_headline_by_source(source='techradar') or p.p.get_headline_by_source('techradar')<br/>
>>print(data)<br/>

## 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')<br/>
>>print(data)<br/>

## Get Top headlines by giving query

>>data = p.get_top_headlines_about(query='apple') or p.get_top_headlines_about('apple')<br/>
>>print(data)<br/>


# Get all news from all sources no need to take any arguments

>>data = p.get_from_all_sources()<br/>
>>print(data)<br/>

# Get News by languages

>>data = p.get_by_lang(lang='fr') or p.get_by_lang('fr')<br/>
>>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()


