Posts

Showing posts with the label Python

Day 4 - Daily Dev Diary

Image
So, today I woke🌇 early the same as yesterday and was done with my Yoga🧘‍♂️ and exercise for the day by around 🕗 8 am. Got my Coursera PY4E specialization certificate, got to know that the Udacity Scholarship's Phase -2 in which I was not selected, one of the students whom I helped got selected and thanked me, it felt awwwesome😎. It made my day😊😇. I was able to setup my Udacity Nanodegree's GitHub repo and progress in my Datacamp course. My college exam went well. And got to know about a lot of opportunities in the open-source world will try to seize max. as time permits. In the evening, I came to know of a deadline to submit a college project and was able to successfully submit it before the deadline but that caused this delay in my today's post. So, overall today was a productive day with lots of happy moments😌🤗. Tomorrow's goal is to make progress on Datacamp and Udacity and give my college exam at around 4 or 5pm.

Day 3 - Daily Dev Diary

So, today I woke🌇 early compared to yesterday and was done with my Yoga🧘‍♂️ and exercise for the day by 🕗 8 am. Ate breakfast while watching Microsoft's intro to Python playlist . It's very good for learning the basics of Python, and if you are not a beginner then, you can have a quick look through the playlist to refresh🔁 your basics(like I did). Some of my key takeaways were - By default, packages are installed globally Virtual environments can be used to contain and manage package collections Creating a virtual environment # Install a virtual environment pip3 install virtualenv # Windows systems python3 -m venv <folder_name> # OSX/Linux (bash) virtualenv <folder_name> Conventionally, <folder_name> = venv Using a virtual environment # Windows systems # cmd.exe <folder_name>\Scripts\Activate.bat # Powershell <folder_name>\Scripts\Activate.ps1 # bash shell . ./<folder_name>/Scripts/activate # OSX/Linux (bash) <fold...

youLike.py - A script to like Youtube videos

Image
It's been a long time since my last post here, the reason being lack of time in my schedule. But, recently due to COVID I got some free time and thought of restarting the blog by posting at least one blog per day. These blogs are going to be more like a diary entry of what I have learned/built in a day. I will try to be as concise as possible. So, first in the series is "youLike.py". It is a script I started working on the day before yesterday which changes the rating(👍 / 👎) of 20 latest videos of a channel as specified in the code by using the channel id of the channel whose video's ratings you want to change. This idea came to my mind when my mother insisted me to like my sister's newly created youtube channel . As I am a lazy guy🥱 and not interested to open each video and hit the like button, so, I thought of writing a script that would do the same for me. So, first of all, I started with reading the documentation of the python-youtube module but wasn...