Cant find this element on tradingview












1















I'm trying to make a program that auto trades for me on tradingview. There is a problem, I need the historical dates, but I can't find the element that contains the date that is being displayed at the time.



I think it's some sort of hovering element, but I have tried to catch it with both sources, network and the element tab in chrome dev tools.



Screenshot of the element: http://prntscr.com/m98gal
Link to chart: https://www.tradingview.com/chart?symbol=SP:SPN



So what I want is that if I hover my mouse on a specific pixel, I want the date that displays element because I will use it in selenium after. Thank you in advance!










share|improve this question























  • When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

    – wOxxOm
    Jan 19 at 9:30













  • Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

    – wOxxOm
    Jan 19 at 9:40











  • why you dont try to use tradingview API?

    – madik_atma
    Jan 19 at 10:23











  • I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

    – Lindau
    Jan 19 at 10:38











  • I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

    – wOxxOm
    Jan 19 at 15:11


















1















I'm trying to make a program that auto trades for me on tradingview. There is a problem, I need the historical dates, but I can't find the element that contains the date that is being displayed at the time.



I think it's some sort of hovering element, but I have tried to catch it with both sources, network and the element tab in chrome dev tools.



Screenshot of the element: http://prntscr.com/m98gal
Link to chart: https://www.tradingview.com/chart?symbol=SP:SPN



So what I want is that if I hover my mouse on a specific pixel, I want the date that displays element because I will use it in selenium after. Thank you in advance!










share|improve this question























  • When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

    – wOxxOm
    Jan 19 at 9:30













  • Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

    – wOxxOm
    Jan 19 at 9:40











  • why you dont try to use tradingview API?

    – madik_atma
    Jan 19 at 10:23











  • I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

    – Lindau
    Jan 19 at 10:38











  • I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

    – wOxxOm
    Jan 19 at 15:11
















1












1








1








I'm trying to make a program that auto trades for me on tradingview. There is a problem, I need the historical dates, but I can't find the element that contains the date that is being displayed at the time.



I think it's some sort of hovering element, but I have tried to catch it with both sources, network and the element tab in chrome dev tools.



Screenshot of the element: http://prntscr.com/m98gal
Link to chart: https://www.tradingview.com/chart?symbol=SP:SPN



So what I want is that if I hover my mouse on a specific pixel, I want the date that displays element because I will use it in selenium after. Thank you in advance!










share|improve this question














I'm trying to make a program that auto trades for me on tradingview. There is a problem, I need the historical dates, but I can't find the element that contains the date that is being displayed at the time.



I think it's some sort of hovering element, but I have tried to catch it with both sources, network and the element tab in chrome dev tools.



Screenshot of the element: http://prntscr.com/m98gal
Link to chart: https://www.tradingview.com/chart?symbol=SP:SPN



So what I want is that if I hover my mouse on a specific pixel, I want the date that displays element because I will use it in selenium after. Thank you in advance!







python selenium google-chrome selenium-webdriver google-chrome-devtools






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 19 at 9:25









LindauLindau

1514




1514













  • When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

    – wOxxOm
    Jan 19 at 9:30













  • Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

    – wOxxOm
    Jan 19 at 9:40











  • why you dont try to use tradingview API?

    – madik_atma
    Jan 19 at 10:23











  • I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

    – Lindau
    Jan 19 at 10:38











  • I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

    – wOxxOm
    Jan 19 at 15:11





















  • When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

    – wOxxOm
    Jan 19 at 9:30













  • Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

    – wOxxOm
    Jan 19 at 9:40











  • why you dont try to use tradingview API?

    – madik_atma
    Jan 19 at 10:23











  • I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

    – Lindau
    Jan 19 at 10:38











  • I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

    – wOxxOm
    Jan 19 at 15:11



















When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

– wOxxOm
Jan 19 at 9:30







When hovering the chart in devtools, I see no highlighting of changed DOM nodes, which means the tooltip is a part of canvas element (confirmed by hiding that element and observing no tooltip), in other words you can't extract it directly without performing OCR.

– wOxxOm
Jan 19 at 9:30















Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

– wOxxOm
Jan 19 at 9:40





Try using the raw source data of the chart. It's either in the original HTML or in a separate XHR.

– wOxxOm
Jan 19 at 9:40













why you dont try to use tradingview API?

– madik_atma
Jan 19 at 10:23





why you dont try to use tradingview API?

– madik_atma
Jan 19 at 10:23













I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

– Lindau
Jan 19 at 10:38





I don't think their API will give me the data... Twitter post: prntscr.com/m991fj

– Lindau
Jan 19 at 10:38













I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

– wOxxOm
Jan 19 at 15:11







I meant the API used by their page. It doesn't have to be a public API. You need to investigate the requests and the responses and the code that makes them to understand the data. Or maybe it's inside the HTML already. Either way the data is there.

– wOxxOm
Jan 19 at 15:11














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54265692%2fcant-find-this-element-on-tradingview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54265692%2fcant-find-this-element-on-tradingview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre