Skip to content

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

tradingview-scraper

πŸ“Š TradingView Screener Scraper (Crypto, Stocks, ETFs)

This Python script scrapes market screener data directly from TradingView using its internal APIs β€” no browser automation required.

It supports:

  • βœ… Crypto Screener
  • βœ… CEX & DEX token lists
  • βœ… US Stock Market Screener
  • βœ… ETF Screener

All extracted data (including name, price, 24h change, market cap, and volume) is saved to CSV files, grouped by type.


πŸ“½οΈ Demo

Watch the demo

πŸ’¬ Want the full working code or a custom scraper?
πŸ“§ Email me at isubhanali3@gmail.com
πŸ’Ό Hire me on Upwork πŸ’¬ Discord: s.a3 πŸ’¬ Discord: s.a3


πŸ” Features

  • Uses requests to query TradingView’s JSON-based screener API
  • Extracts dynamic data for:
    • Crypto coins
    • DEX/CEX tokens
    • US stocks
    • ETFs
  • Saves results to separate .csv files
  • Prints symbols to console in real time
  • Handles pagination internally

πŸ“¦ Dependencies

  • Python 3.x
  • requests
  • json
  • csv
  • time

Install with:

pip install requests
## πŸ§ͺ Code Preview


```python
screeners = {
    "crypto": {
        "url": "https://scanner.tradingview.com/coin/scan",
        "columns": ["base_currency", "close", "24h_close_change|5", "market_cap_calc"]
    }
}

def fetch_screener_to_csv(name, config):
    payload = {
        "columns": config["columns"],
        "range": [0, 100],
        "sort": {"sortBy": config["columns"][0], "sortOrder": "asc"}
    }
    response = requests.post(config["url"], headers=headers, data=json.dumps(payload))
    # process and save CSV...

 This is just a preview.
πŸ’Ό Contact me to access the full working source code or request a custom version:

About

Python script to extract TradingView screener data (Crypto, Stocks, CEX/DEX, ETFs) and save to CSV.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages