BBCNews
A python package to get news from BBC.
Installation
pip3 install BBCHeadlines
Usage
Print headlines:
# Import BBCHeadlines
from BBCHeadlines import articles
# Print the title of article #article_num five times. article_num increases by one every time the loop is increased, starting at zero.
for article_num in range (5):
print(articles.title()[article_num])
Print info on first article:
# Import library
from BBCHeadlines import articles
# We'll get info on the first article
article_num = 0
# Print article title
print('Title: ' + articles.title()[article_num])
# Print article description
print('Description: ' + articles.description()[article_num])
# Print article link
print('Link: ' + articles.link()[article_num])
We can put this into a loop to get headlines with info on the articles:
# Import library
from BBCHeadlines import articles
# Print info on article #article_num five times. article_num increases by one every time the loop is increased, starting at zero.
for article_num in range (5):
# Print article title
print('Title: ' + articles.title()[article_num])
# Print article description
print('Description: ' + articles.description()[article_num])
# Print article link
print('Link: ' + articles.link()[article_num])
Metadata
Release files for BBCHeadlines 1
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 |
|---|---|---|---|---|
| BBCHeadlines-1.tar.gz | 1.7 kB | Without provenance | Details for BBCHeadlines-1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| BBCHeadlines-1-py3-none-any.whl | Python 3 | none | any | Details for BBCHeadlines-1-py3-none-any.whl |
Total release size: 3.8 kB
Release files / BBCHeadlines-1.tar.gz
| Download URL | BBCHeadlines-1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa5103e434b6e16fdf5c04030c67e4a36b53d1f7839c8c2aecb29b181084da6f
|
|
BLAKE2b-256 checksum How to use checksums |
d700be22d5e69afae25f35b4e5efc4d3484e34b264716c84ae7453311cdd0f64
|
| 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.9
|
Release files / BBCHeadlines-1-py3-none-any.whl
| Download URL | BBCHeadlines-1-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
294026d65b8b05bdd049bc8702dc7d887335f26ff3f6aa20a6e6d8377b50090a
|
|
BLAKE2b-256 checksum How to use checksums |
80ee3af9fc075b2e649267e529ef650dac20ffeeff451b741f95e8ee25a02357
|
| 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.9
|
Security for BBCHeadlines 1
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.