pyNewsApi
## This Package Returns Latest and top News Headlines from different sources of News by taking some argumentsInstallation
Run the following to install
$pip install pyNewsApi
Usage
from pyNewsApi import PYNEWS
p = PYNEWS()
Get News by country codes
data = p.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_languages()
get country codes
p.display_country_codes()
get categories
p.display_catcty()
Metadata
Release files for pyNewsApi 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyNewsApi-0.0.4.tar.gz | 7.3 kB | Without provenance | Details for pyNewsApi-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyNewsApi-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for pyNewsApi-0.0.4-py3-none-any.whl |
Total release size: 10.6 kB
Release files / pyNewsApi-0.0.4.tar.gz
| Download URL | pyNewsApi-0.0.4.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
228e340571cb476e0e0eda19a73881772608936b2810cf410ca8282b9484f3e3
|
|
BLAKE2b-256 checksum How to use checksums |
2277726cd25c72fedf4bd908e4859cba26987f92ad3459e8b60e92ac67540a61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Release files / pyNewsApi-0.0.4-py3-none-any.whl
| Download URL | pyNewsApi-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1740f1b62e067bd35331c54d77eeed585b738118543008958510cfad8754335
|
|
BLAKE2b-256 checksum How to use checksums |
a8cf2eb9a3a4a66742bd01e0128af3a9979b12843cb085ba3a16003a474f6fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
|
Security for pyNewsApi 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.