BBCNews
A python package to get news from BBC.
Installation
pip3 install BBCHeadlines
Usage
Get all top articles of right now:
from BBCHeadlines import news
print(news())
Get the top article:
print(news(limit=1))
Sample response:
[
{
"title":"US election: Trump campaign seeks partial recount in Wisconsin",
"title_detail":{
"type":"text/plain",
"language":"None",
"base":"http://feeds.bbci.co.uk/news/world/rss.xml",
"value":"US election: Trump campaign seeks partial recount in Wisconsin"
},
"summary":"Two counties will be asked to recount votes as Donald Trump continues to contest the election result.",
"summary_detail":{
"type":"text/html",
"language":"None",
"base":"http://feeds.bbci.co.uk/news/world/rss.xml",
"value":"Two counties will be asked to recount votes as Donald Trump continues to contest the election result."
},
"links":[
{
"rel":"alternate",
"type":"text/html",
"href":"https://www.bbc.co.uk/news/world-us-canada-54994212"
}
],
"link":"https://www.bbc.co.uk/news/world-us-canada-54994212",
"id":"https://www.bbc.co.uk/news/world-us-canada-54994212",
"guidislink":False,
"published":"Wed, 18 Nov 2020 18:40:53 GMT",
"published_parsed":time.struct_time(tm_year=2020,
tm_mon=11,
tm_mday=18,
tm_hour=18,
tm_min=40,
tm_sec=53,
tm_wday=2,
tm_yday=323,
tm_isdst=0)
}
]
Metadata
Release files for BBCHeadlines 4.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-4.1.tar.gz | 1.9 kB | Without provenance | Details for BBCHeadlines-4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| BBCHeadlines-4.1-py3-none-any.whl | Python 3 | none | any | Details for BBCHeadlines-4.1-py3-none-any.whl |
Total release size: 4.8 kB
Release files / BBCHeadlines-4.1.tar.gz
| Download URL | BBCHeadlines-4.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fdc2078d2cf60a7ef71ae3909e41b1cb10f3889112ffdddec1ddf3931b208f5
|
|
BLAKE2b-256 checksum How to use checksums |
e0769197935bcacbd7d739fa003fa10aec510dea4743a344d9c27f4136e80b60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.4
|
Release files / BBCHeadlines-4.1-py3-none-any.whl
| Download URL | BBCHeadlines-4.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ed59026ca03af07cc2a6eb5a3d17cc756775818a8c238e0502581b86abcf1c6
|
|
BLAKE2b-256 checksum How to use checksums |
a6bf89556f23ce8fdcd2f6d446b7278789527d307b9cbd077740498b3c1c1bcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.4
|
Security for BBCHeadlines 4.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.