Hi ,
I want yo extract the Analyst Rating from the below link,
https://in.tradingview.com/symbols/NASDAQ-AAPL/
please help to find the solution.
The class name is changing dynamically.
![image|690x406](upload://rmWIg3
jr9MVkXPqSpUxDx5PzyC2.png)
Thanks in advance for your valuable time and help.
Thanks,
Anil
{
"Name": "CCC",
"CreationDate": "2022-4-18",
"Commands": [
{
"Command": "open",
"Target": "https://in.tradingview.com/symbols/AMEX-WTT/",
"Value": "",
"Description": ""
},
{
"Command": "executeScript",
"Target": "return document.querySelectorAll(\".arrow-bKC4jg1o\")[1].className.split(' ')[1].replaceAll(/arrow|-bKC4jg1o|/g, '');",
"Value": "TEST",
"Description": ""
},
{
"Command": "echo",
"Target": "${TEST}",
"Value": "green",
"Description": ""
},
{
"Command": "open",
"Target": "https://in.tradingview.com/symbols/NASDAQ-AAPL/",
"Value": "",
"Description": ""
},
{
"Command": "executeScript",
"Target": "return document.querySelectorAll(\".arrow-bKC4jg1o\")[1].className.split(' ')[1].replaceAll(/arrow|-bKC4jg1o|/g, '');",
"Value": "TEST",
"Description": ""
},
{
"Command": "echo",
"Target": "${TEST}",
"Value": "blue",
"Description": ""
},
{
"Command": "open",
"Target": "https://in.tradingview.com/symbols/NYSE-POLY/",
"Value": "",
"Description": ""
},
{
"Command": "executeScript",
"Target": "return document.querySelectorAll(\".arrow-bKC4jg1o\")[1].className.split(' ')[1].replaceAll(/arrow|-bKC4jg1o|/g, '');",
"Value": "TEST",
"Description": ""
},
{
"Command": "echo",
"Target": "${TEST}",
"Value": "grey",
"Description": ""
}
]
}