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+
- pandas>=0.24.0
- 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() # return DataFrame
# get latest news
latest_ = data.latest() # return DataFrame
# get news by category
economy_ = data.economy() # return DataFrame
# etc.
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 an note with any feedback you have.
Asep Saputra
Project details
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.4.tar.gz
(8.9 kB
view hashes)
Built Distribution
ycnbc-1.0.4-py2.py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for ycnbc-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08fc0ae03e9845d9041a9372971ec91b6eb1dc85d4f80341f80933b4e593c272 |
|
MD5 | 4b94b6896e765f0e57639ba663aa2826 |
|
BLAKE2b-256 | 95adaddb9189f00f04896daea841cb9f19423b8bd56c62a4cb86b1322c86caa9 |