'Download all PDF links from html webpage from java program using jSoup

I want to download all PDFs from the links in this webpage from my java program - https://www.bseindia.com/corporates/ann.html

I used jSoup to connect to the website and extract all links but it is not showing the PDF file links. When I open the HTML page source it does not show the links to PDF files. I looked at chrome developer tools -> inspect element and it shows the links there.

So how can I access the links of PDF files shown in inspect element using jSoup?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source