Where It All Begins π
One day, I woke up π΄ and had an online physics class π. I quickly cleaned up π§Ό and joined the class. Days went by, and it was at the beginning of the COVID pandemic π¦ . I started thinking π€ about how I could automate my workloadβlike downloading my classes and watching them all at the end of the week π₯. So, I wrote my first Python code π». I knew the basics of programming, like if
and else
π€·ββοΈ, but not much more at that time. To automate my tasks, I had to learn Python π. I went to YouTube and watched some lessons πΊ. At first, it was overwhelming π
, but after 3-4 days, I became comfortable with Python. Then, I started writing my first program. It was trash ποΈ.
A week later, I rewrote it again and again π, adding BeautifulSoup
(bs4) to automate tasks π οΈ. I learned a lotβhow to debug websites π, understand website errors β οΈ, and identify vulnerabilities π. I also learned how to manipulate APIs, fetch data π, automatically log into a website π, and download all the content from it in seconds β³.
I spent a lot of time coding β, often not realizing how many hours or days had passed π°οΈ. Sometimes, I coded for three days in a row π. Finally, I managed to download all the content from the website π₯οΈ. The only problem was that I had to get up and run the script every time a class started, which wasnβt the automation I wanted π. So, I started working again to fully automate the process π§. I tried many approaches, even programming my laptop to do the task automatically with some batch scripts π». But every time, I had to turn my laptop on.
Thatβs when I realized that to fully automate the process, I needed a server to handle everything for me π₯οΈ. At that time, Heroku was a free service, which was perfect for me π. By that point, I could download all the content from the source, but I didnβt have storage for it π¦. Some files were large video files ποΈ. Then I had another idea: upload every video to YouTube privately, so only I could watch them π₯. I was able to do this using the YouTube API, which allowed up to five videos per day for freeβperfect for my needs β
.
I connected the YouTube API with my script π, so now I could download the videos to my server and automatically upload them to YouTube π€. The reason I downloaded and uploaded the videos was that the content on the website expired after a short time frame β²οΈ. With the help of my script, I could watch the lessons for free on YouTube, as Sri Lankan internet providers offered an unlimited YouTube package at a low cost πΈ. The server was free, as was the YouTube API π°. So, after setting everything up, I could download my videos automatically without disturbing my precious sleep π΄! I scheduled all the classes to do the same ποΈ.
But there was a little problem with documents π. So, as you might guess, I connected the script to Google Drive βοΈ. Then, I was able to download every document to Drive and every video to YouTube automatically. That was a huge relief π, and it gave me a lot of time to manage my work π.
After this journey, I learned many new things π, some of which amazed me π€―. So, I started learning more about programming, cybersecurity π, and other new topics. With my classes automated, I had the time to explore these areas π. I learned one programming language after another and kept updating my script π. For example, when I learned about Firebase π₯, it was a game-changing platform for me, and I added more features to make the automated tasks work efficiently β‘.
After everything I did during that time, I made a decision for my future: to become a computer scientist π¨βπ». Now, Iβm pursuing a Computer Science degree at the National School of Business Management (NSBM) in Sri Lanka π±π°. I hope you enjoyed! See you next time π!