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])
Release files for BBCHeadlines 3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| BBCHeadlines-3.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| BBCHeadlines-3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / BBCHeadlines-3.tar.gz
| Download URL | BBCHeadlines-3.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70d4a08c7139660b9c8fa223c9b1ef110c33393768872c1f38efa3fa9ba3cbfa
|
|
BLAKE2b-256 checksum How to use checksums |
5367d46d3b7268dd6115628653e5bff450e67c4600a3d8f2f24a7317491c6fd2
|
| 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.49.0 CPython/3.6.4
|
Release files / BBCHeadlines-3-py3-none-any.whl
| Download URL | BBCHeadlines-3-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c2460e10ad273b8e445183fa2e82c6427dc34cccd03317f230ad3d8feb1c5ac
|
|
BLAKE2b-256 checksum How to use checksums |
a2614909c19f811a06459aa016fd8132d077039c0a13ac2d7165046945133ea6
|
| 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.49.0 CPython/3.6.4
|