Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16921

Getting website metadata (Excel VBA/Python)

$
0
0

I am trying to get information of stock code from below website using excel vbahttps://www.screener.in/company/KRISHANA/

I went through network tab and found out the code was in under peers nodehttps://www.screener.in/api/company/13611040/peers/

below is the code which I've written in excel vba, the html page has no information on the code

Note: I dont want to duplicate this thread, I tried searching everywhere, if its not possible in vba,can we achieve this in python.

URLS = "https://www.screener.in/company/KRISHANA/" Set xhr = New MSXML2.ServerXMLHTTP60    With xhr        .Open "GET", URLS, False        .setRequestHeader "User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36"        .send            If .readyState = 4 And .Status = 200 Then                Set Doc = New MSHTML.HTMLDocument                Doc.body.innerHTML = .responseText            End If        End With        DoEvents

Viewing all articles
Browse latest Browse all 16921

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>