Download data from CNBC!
Project description
Download news data from CNBC! CNBC's API
*** IMPORTANT LEGAL DISCLAIMER ***ycnbc is not affiliated, endorsed, or vetted by CNBC, It's an open source tool that uses Web Scraping and is intended for research and educational purposes. |
ycnbc offers a threaded and Pythonic way to news and market data from CNBC.
Quick Start
Requirements
- Python >=3.5+
- requests>=2.23.0
- lxml>=4.5.1
Installation
$ pip install ycnbc --upgrade --no-cache-dir
Usage
import ycnbc
data = ycnbc.News()
# Get trending news
trending_ = data.trending()
# Get latest news
latest_ = data.latest()
# Get news by category
economy_ = data.economy()
jobs_ = data.jobs()
white_house_ = data.white_house()
hospitals_ = data.hospitals()
transportation_ = data.transportation()
media_ = data.media()
internet_ = data.internet()
congress_ = data.congress()
policy_ = data.policy()
finance_ = data.finance()
life_ = data.life()
defense_ = data.defense()
europe_politics_ = data.europe_politics()
china_politics_ = data.china_politics()
asia_politics_ = data.asia_politics()
world_politics_ = data.world_politics()
equity_opportunity_ = data.equity_opportunity()
politics_ = data.politics()
wealth_ = data.wealth()
world_economy_ = data.world_economy()
central_banks_ = data.central_banks()
real_estate_ = data.real_estate()
health_science_ = data.health_science()
small_business_ = data.small_business()
lifehealth_insurance_ = data.lifehealth_insurance()
business_ = data.business()
energy_ = data.energy()
industrials_ = data.industrials()
retail_ = data.retail()
cybersecurity_ = data.cybersecurity()
mobile_ = data.mobile()
technology_ = data.technology()
cnbc_disruptors_ = data.cnbc_disruptors()
tech_guide_ = data.tech_guide()
social_media_ = data.social_media()
climate_ = data.climate()
Note:
- URL pages containing news content that have the
PRO
tag still cannot be retrieved using this library.
Legal Stuff
ycnbc is distributed under the Apache Software License. See the LICENSE.txt file in the release for details.
P.S.
Please drop me a note with any feedback you have.
Asep Saputra
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ycnbc-1.0.5.tar.gz
(10.3 kB
view details)
Built Distribution
ycnbc-1.0.5-py2.py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file ycnbc-1.0.5.tar.gz
.
File metadata
- Download URL: ycnbc-1.0.5.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c33caa70e556d0ba7147febf9b0cbb7f25e07db828f24fe66b0a7c8ee66465 |
|
MD5 | 0c5fdf36dac53cc99c03684267b4709b |
|
BLAKE2b-256 | 7d1b79091b196c909078362ea16e81af18a99c4f381bb8621513ff66fbbb2783 |
File details
Details for the file ycnbc-1.0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: ycnbc-1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973b57331b40fd8a62395d5dbeba99ae149b8bcf4122d7ec9c169971881220a1 |
|
MD5 | 0c32f036535eaf502d2c80ce2365f7e3 |
|
BLAKE2b-256 | 498466a4bf068ed3b679aa81f55131866de9fedcec669ff15e794387e861ea71 |