{"id":18031474,"url":"https://github.com/pedrohcleal/tradingviewscraper","last_synced_at":"2026-03-06T17:02:44.861Z","repository":{"id":259149437,"uuid":"875080863","full_name":"pedrohcleal/TradingViewScraper","owner":"pedrohcleal","description":"Python-based scraper designed to fetch and analyze technical indicators and pivot points from TradingView","archived":false,"fork":false,"pushed_at":"2025-05-26T01:46:12.000Z","size":4441,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-18T06:42:56.123Z","etag":null,"topics":["bitcoin","pydantic","python","scraper","selenium","trading","tradingview"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedrohcleal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-10-19T03:53:05.000Z","updated_at":"2025-06-10T18:33:57.000Z","dependencies_parsed_at":"2024-12-17T13:21:20.573Z","dependency_job_id":"150a24d0-936d-4865-b500-cece973733a3","html_url":"https://github.com/pedrohcleal/TradingViewScraper","commit_stats":null,"previous_names":["pedrohcleal/tradingviewscraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedrohcleal/TradingViewScraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrohcleal%2FTradingViewScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrohcleal%2FTradingViewScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrohcleal%2FTradingViewScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrohcleal%2FTradingViewScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrohcleal","download_url":"https://codeload.github.com/pedrohcleal/TradingViewScraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrohcleal%2FTradingViewScraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30186779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bitcoin","pydantic","python","scraper","selenium","trading","tradingview"],"created_at":"2024-10-30T10:09:16.874Z","updated_at":"2026-03-06T17:02:44.830Z","avatar_url":"https://github.com/pedrohcleal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TradingView Scraper\n\n![Python](https://img.shields.io/badge/python-3670A0?style=flat\u0026logo=python\u0026logoColor=ffdd54)\n![Selenium](https://img.shields.io/badge/selenium-43B02A?style=flat\u0026logo=selenium\u0026logoColor=white)\n![Pydantic](https://img.shields.io/badge/pydantic-1B4D3A?style=flat\u0026logo=pydantic\u0026logoColor=white)\n![JSON](https://img.shields.io/badge/json-000000?style=flat\u0026logo=json\u0026logoColor=white)\n![Virtual Environment](https://img.shields.io/badge/venv-3B5998?style=flat\u0026logo=python\u0026logoColor=white)\n\nThis scraper is designed to fetch financial data, specifically technical indicators and pivot points, from TradingView in a performant way. The scraper efficiently extracts this data for multiple asset pairs across various time intervals, using Selenium for web automation and Pydantic for data validation.\n\nPT-BR:\nScraper projetado para buscar dados financeiros, especificamente indicadores técnicos e pontos pivôs, do TradingView de forma eficiente. O scraper extrai esses dados de maneira eficiente para múltiplos pares de ativos em vários intervalos de tempo, utilizando Selenium para automação web e Pydantic para validação de dados.\n\n## Features\n\n- **Performance-Oriented**: The scraper uses `WebDriverWait` to minimize unnecessary waits, ensuring efficient scraping.\n- **Technical Indicators**: Fetches oscillators and moving averages for specified asset pairs.\n- **Pivot Points**: Retrieves pivot points in different formats (Classic, Fibonacci, Camarilla, Woodie, DM).\n- **Customizable Intervals**: Scrapes data for a variety of time intervals (1m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M).\n- **Structured Data**: The extracted data is validated using Pydantic models, making it easier to integrate into other systems or databases.\n\n## Project Structure\n\n```\n.\n├── README.md\n├── pairs.json           # List of asset pairs to scrape\n├── pyproject.toml       # Python project configuration\n├── requirements.txt     # Python dependencies\n├── src/\n│   ├── chrome_config.py # ChromeDriver setup and configuration\n│   ├── main.py          # Main script to run the scraper\n│   └── models.py        # Pydantic models for structured data\n└── uv.lock              # Lockfile for dependencies\n```\n\n## Installation\n\nFollow the steps below to set up the project and run the scraper.\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/pedrohcleal/TradingViewScraper.git\ncd TradingViewScraper\n```\n\n### 2. Create a Virtual Environment\n\nMake sure you have Python installed. Create a virtual environment to isolate the project dependencies:\n\n```bash\npython -m venv venv\n```\n\n### 3. Activate the Virtual Environment\n\n- On Windows:\n\n  ```bash\n  venv\\Scripts\\activate\n  ```\n\n- On macOS/Linux:\n\n  ```bash\n  source venv/bin/activate\n  ```\n\n### 4. Install Dependencies\n\nWith the virtual environment activated, install the required dependencies from `requirements.txt`:\n\n```bash\npip install -r requirements.txt\n```\n\n### 5. Install Playwright Deps\n\n```bash\nplaywright install chromium\nplaywright install deps chromium\n```\n\n### 6. Run the Scraper\n\nThe scraper uses a JSON file (`pairs.json`) that contains a list of asset pairs to scrape. Once everything is set up, run the scraper:\n\n```bash\npython src/main.py\n```\n\nThe script will scrape the financial data for the pairs and intervals specified in the code, outputting the results to the console.\n\n## Notes\n\n- The scraper is optimized for performance with WebDriver waits to ensure it only interacts with the page when elements are ready.\n- Make sure your internet connection is stable, as the scraper fetches data from TradingView.\n- You can customize the time intervals and pairs by editing the `intervals` list and the `pairs.json` file.\n\n## Log snapshot\n\n![In Action](log.png)\n\n[YoutubeTestVideo](https://www.youtube.com/watch?v=BrAvGvnX370)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrohcleal%2Ftradingviewscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrohcleal%2Ftradingviewscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrohcleal%2Ftradingviewscraper/lists"}