πŸ“ˆ Extract market cap data from Yahoo Finance with Bright Data & visualize in Telegram

⚑ 1,493 views Β· πŸ“ˆ Crypto Trading & Stock Market

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Financial Insight Automation: Market Cap to Telegram via Bright Data

πŸ“Š Description

An automated n8n workflow that scrapes financial data from Yahoo Finance using Bright Data, processes market cap information, generates visual charts, and sends comprehensive financial insights directly to Telegram for instant notifications.


πŸš€ How It Works

This workflow operates through a simple three-zone process:

1. Data Input & Trigger

User submits a keyword (e.g., β€œAI”, β€œCrypto”, β€œMSFT”) through a form trigger that initiates the financial data collection process.

2. Data Scraping & Processing

Bright Data API discovers and scrapes comprehensive financial data from Yahoo Finance, including market cap, stock prices, company profiles, and financial metrics.

3. Visualization & Delivery

The system generates interactive market cap charts, saves data to Google Sheets for record-keeping, and sends visual insights to Telegram as PNG images.


⚑ Setup Steps

> ⏱️ Estimated Setup Time: 15-20 minutes

Prerequisites

Step 1: Import the Workflow

  1. Copy the provided JSON workflow code
  2. In n8n: Go to Workflows β†’ + Add workflow β†’ Import from JSON
  3. Paste the JSON content and click Import

Step 2: Configure Bright Data Integration

Set up Bright Data Credentials:

  1. In n8n: Navigate to Credentials β†’ + Add credential β†’ HTTP Header Auth
  2. Add Authorization header with value: Bearer BRIGHT_DATA_API_KEY
  3. Replace BRIGHT_DATA_API_KEY with your actual API key
  4. Test the connection to ensure it works properly

> Note: The workflow uses dataset ID gd_lmrpz3vxmz972ghd7 for Yahoo Finance data. Ensure you have access to this dataset in your Bright Data dashboard.

Step 3: Set up Google Sheets Integration

Create a Google Sheet:

Configure Google Sheets credentials:

Update the workflow:

Step 4: Configure Telegram Bot

Set up Telegram Integration:

  1. Create a Telegram bot using @BotFather
  2. Get your bot token and chat ID
  3. In n8n: Credentials β†’ + Add credential β†’ Telegram API
  4. Enter your bot token
  5. Update the β€πŸ“€ Send Chart on Telegram” node with your chat ID
  6. Replace YOUR_TELEGRAM_CHAT_ID with your actual chat ID

Step 5: Test and Activate

Test the workflow:

Activate the workflow:


πŸ“‹ Key Features


πŸ“Š Output Data Points

FieldDescriptionExample
Company NameFull company name”Apple Inc.”
Stock TickerTrading symbol”AAPL”
Market CapTotal market capitalization”$2.89T”
Current PriceLatest stock price”$189.25”
ExchangeStock exchange”NASDAQ”
SectorBusiness sector”Technology”
PE RatioPrice to earnings ratio”28.45”
52 Week RangeAnnual high and low prices”$164.08 - $199.62”

πŸ”§ Troubleshooting

Common Issues

Bright Data Connection Failed:

Google Sheets Permission Denied:

Telegram Not Receiving Messages:

Performance Tips


🎯 Use Cases


πŸ”— Additional Resources


For any questions or support, please contact:
info@incrementors.com
or fill out this form: https://www.incrementors.com/contact-us/

πŸ”— Nodes Used

Google Sheets, HTTP Request, Telegram, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup