Fetch stock price from Yahoo Finance

The url for stock number #1234

Pattern:

https://hk.finance.yahoo.com/quote/STOCKNUM.HK/?p=STOCKNUM.HK

 

The stock number in url should be in 4 digits with leading zero, therefore, when reading input: