This is a small script to grab the daily fund price from my Unit Trust broker website, parse it and display the result on the terminal.
The broker's URL and its fund code were removed from this repo. The random 0.1s to 1s sleep was added between each request send to the website to prevent concentration.
- Edit
fundList.phpto add your fund's code. - Run
./fundPrice.php, the script will grab your fund's data, display them and save a copy of it to a text file. - Enjoy!