Hello,
I’m trying to find a way how to extract a list of objects from TradingView (along with some of their properties).
I have a chart on TradingView web page and draw a few horizontal lines and horizontal rays on it.
I need to find a way how to export to Excel the list of lines and rays and their coordinates.
There is a button 'Object tree at the right bottom corner which brings up the list of all objects on the current chart. I even figured out the name of the parent div class (which is:
widgetbar-widget widgetbar-widget-object_tree )
But what I can’t figure out is how to iterate through the list of objects
For example ALL Horizontal Line objects are nested in the parent div as:
span class with the same id and the same data-type=“data-source” which is ‘Horizontal Ray’
The same case is with Horizontal Line objects
I also tried a simple web recording method and figured out that css selector for each object in the Object Tree window looks like:
\
where idx parameter changes incrimentally
I would really appreciate any help with this problem!