I don't want to see what's in those sites; it just does not matter; anyway, you did not explain what kind of data you need to extract.
In all cases, you need to use some technique of Web scraping
Basically, you need to act like a Web client, send some HTTP requests and get HTTP response. And then you need something to parse the content received in response. If this is HTML, you will need to parse it. Basically, that's it.
Please see my past advice on how to do it all:get specific data from web page
],How to get the data from another site