img
gradient

Where It All Begins πŸš€

Written by Upeksha Indeewara

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 πŸ‘‹!