fear-and-greed
Python wrapper for CNN Fear & Greed Index.
Decision gist · record as of 2026-08-14
Yes, if you need quick programmatic access to CNN's Fear & Greed Index and are willing to accept the risk that the scraper may break due to site changes. The low install friction and permissive license make it a low-cost experiment. No, if you require active maintenance or a guaranteed working solution—the package is abandoned and has not been updated since May 2022. Test it first to confirm the scraper still works with the current CNN website.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- CNN's website structure may have changed since the last release in May 2022; the scraper may no longer work if the page layout has been updated.
- Low install friction with only two runtime dependencies (requests and requests-cache).
- However, the package is abandoned—last updated May 2022—so no maintenance or bug fixes should be expected going forward.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
last release 2022-05-20 (1547 days) · last repo commit 2022-05-20 · 44 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,405 downloads/mo, #13,587 on PyPI
Alternatives
Verify before relying
pip install fear-and-greed
import fear_and_greed
result = fear_and_greed.get()
print(result.value, result.description, result.last_update)- Whether the web scraper still successfully parses CNN's Fear & Greed Index page given potential site structure changes since May 2022.
- Whether the 1-minute cache duration for requests is still appropriate for current use cases.
- The range of the index value (description mentions it falls into categories from 'Extreme Fear' to 'Extreme Greed').
What it is and what it does
fear-and-greed is a lightweight Python wrapper that scrapes CNN's Fear & Greed Index from their website and returns the current market sentiment metric as a structured named tuple. It wraps the web-scraping logic around requests and requests-cache, caching results locally for 1 minute to avoid repeated fetches.
The package is designed for developers who want programmatic access to CNN's Fear & Greed Index without building their own scraper. It returns three pieces of data: the numeric index value, a human-readable category label (ranging from "Extreme Fear" to "Extreme Greed"), and the UTC timestamp of the last update on CNN's site. However, the package has not been maintained since May 2022, so its scraper may fail if CNN's website structure has changed.
Use it for
- Fetch the current Fear & Greed Index value in a financial dashboard or monitoring application.
- Log historical sentiment readings at intervals for trend analysis or backtesting trading strategies.
- Alert traders or analysts when the index crosses into extreme fear or greed territory.
- Combine with other market data sources to build a multi-factor sentiment analysis tool.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need quick programmatic access to CNN's Fear & Greed Index and are willing to accept the risk that the scraper may break due to site changes.
The low install friction and permissive license make it a low-cost experiment. No, if you require active maintenance or a guaranteed working solution—the package is abandoned and has not been updated since May 2022. Test it first to confirm the scraper still works with the current CNN website.
Install
fear-and-greed on PyPI
Before you install
Low install friction with only two runtime dependencies (requests and requests-cache). However, the package is abandoned—last updated May 2022—so no maintenance or bug fixes should be expected going forward.
CNN's website structure may have changed since the last release in May 2022; the scraper may no longer work if the page layout has been updated.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install fear-and-greed
import fear_and_greed
result = fear_and_greed.get()
print(result.value, result.description, result.last_update)
Verify before relying
- Whether the web scraper still successfully parses CNN's Fear & Greed Index page given potential site structure changes since May 2022.
- Whether the 1-minute cache duration for requests is still appropriate for current use cases.
- The range of the index value (description mentions it falls into categories from 'Extreme Fear' to 'Extreme Greed').
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesrequestsrequests-cache |
| Maintenance | Abandoned 1,547 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,405 / month, #13,587 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: Financial and Insurance IndustryLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: fear_and_greed-0.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cnn fear and greed index”
- fear-and-greedFetches CNN's Fear & Greed Index from their website, parses the…
- investor-agentProvides financial research tools as an MCP server for analyzing…
- mmcvMMCV is a foundational library for computer vision that provides…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also yfinance · finance-datareader · tushare · investor-agent · baostock · alpha-vantage · tradingview-screener · efinance · vnai · mootdx