Skip to main content

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.

Changelog »


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)

Uploaded Source

Built Distribution

ycnbc-1.0.4-py2.py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page