{"id":21712420,"url":"https://github.com/asepscareer/ycnbc","last_synced_at":"2026-01-07T12:16:37.573Z","repository":{"id":62590528,"uuid":"468847957","full_name":"asepscareer/ycnbc","owner":"asepscareer","description":"Get Real Time News and Market Data From CNBC Using ycnbc !!!","archived":false,"fork":false,"pushed_at":"2024-08-27T08:23:03.000Z","size":47,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T18:04:41.015Z","etag":null,"topics":["cnbc-api","cnbc-market","financial-data","financial-markets","lxml","market-data","markets","news","newsapi","pandas","python","scraping-python","stock-market"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ycnbc/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asepscareer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://paypal.me/selaris"]}},"created_at":"2022-03-11T17:47:42.000Z","updated_at":"2025-03-25T08:41:58.000Z","dependencies_parsed_at":"2024-08-22T03:57:48.136Z","dependency_job_id":null,"html_url":"https://github.com/asepscareer/ycnbc","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fycnbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fycnbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fycnbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fycnbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asepscareer","download_url":"https://codeload.github.com/asepscareer/ycnbc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610345,"owners_count":21132921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnbc-api","cnbc-market","financial-data","financial-markets","lxml","market-data","markets","news","newsapi","pandas","python","scraping-python","stock-market"],"created_at":"2024-11-25T23:38:56.472Z","updated_at":"2026-01-07T12:16:37.567Z","avatar_url":"https://github.com/asepscareer.png","language":"Python","funding_links":["https://paypal.me/selaris"],"categories":[],"sub_categories":[],"readme":"# Download news data from CNBC! CNBC's API\n\n\u003ctable border=1 cellpadding=10\u003e\u003ctr\u003e\u003ctd\u003e\n\n#### *** IMPORTANT LEGAL DISCLAIMER ***\n\n---\n\nycnbc 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.\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n---\n\n**ycnbc** offers a threaded and Pythonic way to news and market data from [CNBC](https://www.cnbc.com).\n\n[Changelog »](https://github.com/asepscareer/ycnbc/blob/master/CHANGELOG.rst)\n\n---\n\n## Why ycnbc is compelling:\n\n- **Simplicity**: Easy-to-use API for quick data retrieval.\n- **Directness**: No retries, ensuring immediate feedback on success or failure.\n- **Focus**: Specifically designed for CNBC data, providing relevant and targeted information.\n- **Lightweight**: Minimal dependencies for a streamlined experience.\n\n---\n\n## Quick Start\n\n---\n### Requirements\n\n- Python \u003e=3.8+\n- curl-cffi\u003e=0.5.9\n- lxml\u003e=4.9.3\n- cssselect\u003e=1.2.0\n\n---\n### Installation\n\n```\n$ pip install ycnbc --upgrade --no-cache-dir\n```\n\n---\n\n### Usage for Markets\n```python\nimport ycnbc\n\nmarkets = ycnbc.Markets()\n\nquote_summary = markets.quote_summary('AAPL')\npre_markets = markets.pre_markets()\nus_markets = markets.us_markets()\neurope_markets = markets.europe_markets()\nasia_markets = markets.asia_markets()\ncurrencies = markets.currencies()\ncryptocurrencies = markets.cryptocurrencies()\nfutures_and_commodities = markets.futures_and_commodities()\nbonds = markets.bonds()\nfunds_and_etfs = markets.funds_and_etfs()\n```\n\n### Usage for news\n\n```python\nimport ycnbc\n\nnews = ycnbc.News()\n\n# Get trending news\ntrending_news = news.trending()\n\n# Get latest news\nlatest_news = news.latest()\n\n# Get news by category\neconomy_news = news.economy()\njobs_news = news.jobs()\nwhite_house_news = news.white_house()\nhospitals_news = news.hospitals()\ntransportation_news = news.transportation()\nmedia_news = news.media()\ninternet_news = news.internet()\ncongress_news = news.congress()\npolicy_news = news.policy()\nfinance_news = news.finance()\nlife_news = news.life()\ndefense_news = news.defense()\neurope_politics_news = news.europe_politics()\nchina_politics_news = news.china_politics()\nasia_politics_news = news.asia_politics()\nworld_politics_news = news.world_politics()\nequity_opportunity_news = news.equity_opportunity()\npolitics_news = news.politics()\nwealth_news = news.wealth()\nworld_economy_news = news.world_economy()\ncentral_banks_news = news.central_banks()\nreal_estate_news = news.real_estate()\nhealth_science_news = news.health_and_science()\nsmall_business_news = news.small_business()\nlife_insurance_news = news.life_and_health_insurance()\nbusiness_news = news.business()\nenergy_news = news.energy()\nindustrials_news = news.industrials()\nretail_news = news.retail()\ncybersecurity_news = news.cybersecurity()\nmobile_news = news.mobile()\ntechnology_news = news.technology()\ncnbc_disruptors_news = news.cnbc_disruptors()\ntech_guide_news = news.tech_guide()\nsocial_media_news = news.social_media()\nclimate_news = news.climate()\n```\n\nNote:\n\n- URL pages containing news content that have the `PRO` tag still cannot be retrieved using this library.\n\n---\n\n### Legal Stuff\n\n**ycnbc** is distributed under the **Apache Software License**. See\nthe [LICENSE.txt](./LICENSE.txt) file in the release for details.\n\n---\n\n### P.S.\n\nPlease drop me a note with any feedback you have.\n\n**Asep Saputra**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasepscareer%2Fycnbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasepscareer%2Fycnbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasepscareer%2Fycnbc/lists"}