简体   繁体   中英

Java Web scraping for yahoo finance, extracting analyst rating

I am trying to get the analyst rating of a given stock from yahoo finance using Java. I am using jsoup but looks like when I print the main HTML I am unable to see output which I see in the browser console. Is there anything I am missing. Yahoo finance is full of JavaScript. So I don't see the script information in jsoup object.

Thanks bilal

You need to check all the requests being shown in your browser's network tab. One of them would have the data set you require, most probably in JSON.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM