Giter VIP home page Giter VIP logo

tradingview-data-scraper's Introduction

TradingView Chart Data Extractor

Video Tutorial

How-to screen recording: https://d.pr/v/VGCDNf

The resulting file from the tutorial above: https://d.pr/f/bnQ75v

Ensure that you zoom/pan such that the oldest date you desire is visible on TradingView before publishing the chart. Too many indicators or too low a time resolution will increase the data points and potentially overload the free server. Avoid this by hosting/running the script on your local machine or scraping multiple times with fewer indicators and manually combine the CSV afterwards.

Usage

Simply append the URL of a chart/idea published on TradingView to the link below. This is not the URL of a security's chart, but the URL for a user-published chart: https://tradingview-data.herokuapp.com/quotes?url=

i.e. for this chart: https://www.tradingview.com/chart/SPY/vjYfwgMu-SPY-Export-Test/

You'd use: https://tradingview-data.herokuapp.com/quotes?url=https://www.tradingview.com/chart/SPY/vjYfwgMu-SPY-Export-Test/

Install

pip3 install virtualenv
python3 -m venv .
source bin/activate
pip3 install -r requirements.txt
git init
heroku create
heroku git:remote -a projectname
heroku stack:set heroku-16
heroku buildpacks:add https://github.com/jontewks/puppeteer-heroku-buildpack.git
heroku buildpacks:add heroku/python
git add .
git commit -am 'fix'
git push heroku master

tradingview-data-scraper's People

Contributors

cruddyshad0w avatar dependabot[bot] avatar jchao01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tradingview-data-scraper's Issues

How do I install it on a local machine?

I'm running Windows, I'd like to run the code locally, how does it work?

I basically want to still be able to get the CSV using the Python code you listed but I don't know how to program.

Thank you in advance. Great tool!

Hi

Hey buddy,
Is it possible to extract a pine script logic from private indicators ?
it will be really apretiated if yo could or give me some pointers .
Thanks,
Ak

requirements file error

Hi,
I am taking this error,

Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

Could you help me?
Thanks

More history?

I'm getting about ~800 data points for history.
Any possibly way to grab all points from a chart?
A way to use this on a chart rather then an idea?

Feature Request

I think most traders would love to have this feature.

As a user when I provide you a chart link, you should give me the most up to date data.

Manually, a user will click "Load new bars" button on the chart to achieve this

--single-process problem

Hi,

In case of using the '--single-process' argument I get an error:
--single-process is not supported in chrome multiple dll browser

Removing this argument the app works well.
Is it really necessary to use this arg?

Browser: Chrome
Version: 76.0.3809.100

"list index out of range" error

Great app! I've successfully downloaded your sample data but have been receiving a "list index out of range" error when trying do the same on an idea I've published myself. Can you help me on this? Many thanks

There's nothing here, yet.

everything is working through CLI as in the code is working, but when i add the url https://tradingview-data.herokuapp.com/quotes?url=https://in.tradingview.com/chart/BTCUSDT.P/xayXb8s2-6-months-OI-chart/
I get this error, it's so confusing as Heroku is completely up to date and up and running. Please help

Screenshot 197 (screen of the page after entering the complete URL)

and heres the output after running git push heroku master

`
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 55.8M
remote: -----> Launching...
remote: Released v4
remote: https://murmuring-spire-93487-378ce2afb6cf.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/murmuring-spire-93487.git

  • [new branch] master -> master
    `

TradingView now allows all chart data to be exported in CSV format.

Just thought I'd let you know :) Custom indicators, plots, everything. Worked on strategies and studies for me (but only indicator, price data, etc. No strategy data unfortunately). Perhaps it'd be a better direction for this project to automate the process of getting the CSV from them instead of scraping it and running into issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.