I have been trying in the past several days to automate the saving from the command line of the following page as a table or a text file, using tools like wget or curl, but with no luck. The problems come also from the fact that the url is masked. I was wondering if there was the possibility to do it using tools like selenium.
https://www.hkex.com.hk/Market-Data/Securities-Prices/Equities?sc_lang=en
Before saving the page as a table, basically two operations need to be done:
a) Click once the '20 Items' on the lower right and bring it to '100 Items'
b) Click 10 times on 'LOAD MORE' link on the lower middle of the page, in order to increase the number of displayed items
I would greatly appreciate any suggestion on how to resolve this task. Thanks for your consideration.