This python code will get requests from SET (The Stock Exchange of Thailand) a real-time trading stock price in Thai Baht currency with an external link toward checking validity of the price using BS4 (Beautiful Soup 4) HTML scrapper.
In your cmd or terminal
pip install requests
pip install bs4
pip install beautifulsoup4
This python code will get requests from classic.settrade.com (I have not yet updated to a new website version) (The Stock Exchange of Thailand) using beautiful soup 4 html scrapper.
- Run the program
- Input your preferred SET (The Stock Exchange of Thailand) ticker symbols
- i.e. Test cases --> GULF, PTT, PTTEP, OR, BDMS, or any sercurities traded on the SET
- The program will return a real-time trading stock price with an external link toward checking validity of the price.
This program cannot take a request when the website is in an on-going maintanance period (usually in the weekend of each month) since this code is relying on classic.settrade.com data.
Any suggestion on my code are all welcome, I am here to share and improve myself.