I started learning Python as part of my Cyber Security course (which is classroom based) we only spent one afternoon per week for one term (so far) and we we’re only learning the basics, but I have really enjoyed learning Python. So in my spare time I’ve been trying to increase my knowledge in Python to a point that I’m really comfortable and can write more complex programs. Once I’m totally happy with Python I’ll try to hop over to Java and C#.
Ok, so to build a ‘proper’ stock trading bot you really need to use a API enabled stock broker which was beyond what I wanted to do (for the time being at least). So this is more just about having a bit of fun and utilising a Python web scraper to get real-time stock information from a website, in our case Yahoo finance. There are a couple of different web scrapper libraries but I went with one called Beautiful Soup, you can use it to pull data out of HTML and XML files.
I played around with Django (a Python based web framework) all morning and managed to create an extremely simple blog site, but it was pretty complicated and time consuming for someone that wants something to “just work”. After some further Googling I stumbled onto Jekyll (https://jekyllrb.com/) and Hugo (https://gohugo.io/) these are extremely light/small static webpage generators. After some further Googling I discovered that you can host (static) websites for free on GitHub Pages AND they allow you to use a custom domain name, so I followed the tutorial here https://pages.