OpenParable
Skip to content
← Back to skills

Finviz

Research
finviz

Finviz is an Agent Skill for research published in the gauss314/skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Scraper de Finviz: datos fundamentales, técnicos, insider trading, news y screener para acciones US. Sin API oficial.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/gauss314/skills/blob/HEAD/skills/finviz/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/finviz, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Finviz — Scraper de Datos Financieros

Scraper de Finviz que extrae datos fundamentales (P/E, EPS, PEG, márgenes, etc.), técnicos (RSI, MACD, SMA, ATR), insider trading, noticias y screener para acciones del mercado US.

Finviz no tiene API pública oficial. Este skill scrapea el HTML de las páginas públicas usando requests + BeautifulSoup.


⚠️ Aviso Legal

  • Finviz no tiene API pública oficial. Este scraper accede a datos públicamente disponibles en la web.
  • Respetá los términos de servicio de Finviz.
  • Implementá rate limiting (mín 2 segundos entre requests).
  • No uses este scraper para uso comercial sin verificar los ToS de Finviz.
  • El sitio puede cambiar su estructura HTML, rompiendo el scraper.

Instalación de dependencias

pip install requests beautifulsoup4

Scripts

ScriptDescripción
fetch_quote.pyExtrae perfil, fundamentales, técnicos, noticias e insider trading de un ticker.

Uso rápido

# Fetch completo de un ticker
python scripts/fetch_quote.py --ticker AAPL

# Solo fundamentales
python scripts/fetch_quote.py --ticker AAPL --fields fundamentals

# Output a archivo JSON
python scripts/fetch_quote.py --ticker MSFT --output msft_data.json

# Múltiples tickers
python scripts/fetch_quote.py --ticker AAPL,MSFT,GOOGL

# Headlines de noticias (default: 5)
python scripts/fetch_quote.py --ticker NVDA --news-headlines 10

Campos extraídos del quote page

Fundamentales

CampoDescripción
Market CapCapitalización de mercado
P/EPrice-to-Earnings ratio
Forward P/EForward P/E
PEGPEG ratio
P/SPrice-to-Sales
P/BPrice-to-Book
EPS (ttm)Earnings Per Share (trailing 12 months)
EPS next YEstimated EPS next year
SalesRevenue
Profit MarginProfit margin
ROEReturn on Equity
ROAReturn on Assets
Debt/EqDebt-to-Equity
Dividend %Dividend yield
Insider OwnInsider ownership
Instit OwnInstitutional ownership
Short FloatShort float percentage
Target PriceAnalyst target price
RatingAnalyst rating

Técnicos

CampoDescripción
RSI (14)Relative Strength Index
SMA 20Simple Moving Average 20d
SMA 50Simple Moving Average 50d
SMA 200Simple Moving Average 200d
MACDMACD value
ATRAverage True Range
BBBollinger Bands midpoint
VolatilityVolatility
BetaBeta

Estructura del skill

skills/finviz/
├── SKILL.md                     # Este archivo
├── references/
│   └── QUOTE_REFERENCE.md       # Referencia de campos extraídos
└── scripts/
    └── fetch_quote.py           # Scraper principal