If the website provides an API to access the data, then use that rather than trying to extract the data from the HTML.
Otherwise, you'll have to resort to
Web scraping[
^]. But be aware that you may be breaching the website's terms of use, and end up liable to prosecution. And the site owners are free to change the structure of their HTML markup at any time, or to take other steps to prevent your program from scraping their data.