Skip to main content

Posts

Showing posts from August, 2021

How to use Chess com API using Python

  How to use Chess com API using Python Chess is an amazing strategy-based game and if you have been following the recent boom of online chess then welcome to the chess club. Online chess is amazing since it allows you to play with a random stranger at your level or stockfish (computer). There are many popular online chess websites like lichess.org, chess.com, playchess.com, and newly created kasparovchess.com. Today we will be seeing how to use chess.com API for getting players' stats. You can create software and get affiliates from them (check out the link below), so share it with them if you are planning to create something. Before you start make sure you have the following things: Pre-requirements Postman Anaconda or mini conda or Python idle Any text editor of your choice Pretty good? Now let’s download the JSON file that chess com developers have already made for us from here and then you import it to the Postman. This just helps you with prewritten get methods so that ...

A look into the pre-release in Python 3.10

  A look into the pre-release in Python 3.10 Python 3.10 is around the corner and if you want to download the pre-release version of Python 3.10 then head to the link or check out the references at the end of the article. Photo by Clément Hélardot on  Unsplash So, there are few new things added to Python, and if you want to check all of them out head to this link . But here are the two features that I really like: Structural Pattern Matching The match statement first evaluates the subject expression. If a comma is present a tuple is constructed using the standard rules. This has a similar structure as the switch case. This looks like a powerful tool when matching multiple values in an object or even a tuple. Fig.1. Simple example using match Let’s see a small example wherein you might need to retrieve 2 or 3 values based on input. The match pattern helps you to do that easily. Fig.2. Creating two classes Point3d and Point2d Let’s create a function that wi...

Create your own YouTube video and playlist downloader using QT designer in Python

Create your own YouTube video and playlist downloader using QT designer in Python The code for this software is available on my GitHub, the link is given below. Create your own YouTube video and playlist downloader using QT designer in Python This is the thing we are trying to make today for this article The code for this software is available on my GitHub, the link is given below. If you haven’t checked out my previous article on the same topic but not the GUI version, please check it out. 3 ways to download YouTube playlists at once using Python Have you guys ever wanted to download your entire youtube playlist? rahulbhatt1899.medium.com So before starting to code let's check if you have all the requirements beforehand: Pre-requirements : Qt designer Anaconda or mini conda or python 3.7 compiler Any text editor of your choice Libraries to download: Pytube Ffmpy PyQt5 This would be sectioned into the following structure: Creating the UI in Qt designer Converting UI file int...

3 ways to download YouTube playlists at once using Python

3 ways to download YouTube playlists at once using Python Have you guys ever wanted to download your entire youtube playlist? 3 ways to download YouTube playlists at once using Python YouTube video/playlist downloader I made. Have you guys ever wanted to download your entire youtube playlist? Finding yourself frustrated with those youtube downloaders and downloading your videos one by one is annoying. Well if you have been following my articles I really love Python and today we’ll be writing a script to download the entire playlist in mp4 and audio format. You can download videos or the entire playlist in mp4 or mp3 format with the methods mentioned below. First thing first pre-requirements: Anaconda/MiniConda (python 3.7 version) Any text editor of your choice 1. Download YouTube playlist in mp4 format Step 1: Install the pytube package using the following command. Download pytube library using this command Step 2: Write this script or check out my code in my Github repository ...

Watch these Scambaiting pros and learn how to identify Scammers!

Watch these Scambaiting pros and learn how to identify Scammers! Hello everyone, I hope you are doing well. Watch these Scambaiting pros and learn how to identify Scammers! Hello everyone, I hope you are doing well. Have you ever been getting a lot of spam/scam calls and get frustrated every time? Well, these 3 channels on this list made a creative way to entertain out of these scam calls. Lately, I have been binge-watching some of the scambaiting videos on Youtube. It is a perfect mixture of fun, humorous and educational. The videos will keep you updated about the latest methods these scammers are using. Photo by Lindsey LaMont on  Unsplash Here are my personal favorite scam baiting channels on Youtube: 1.Kitboga Kitboga has the most comedic and entertaining channel on this list. He uses a grandma voice changer & his acting skills are spot on. This guy will keep you in the loop of watching his scam videos because they are extremely funny and entertaining to watch. Catch hi...

3 Methods to convert Docx files into PDF files using Python

3 Methods to convert Docx files into PDF files using Python Have you always wanted to convert Docx files into pdf in a batch? If yes, these python scripts will make your life much more comfortable… 3 Methods to convert Docx files into PDF files using Python Have you always wanted to convert Docx files into pdf in a batch? If yes, these python scripts will make your life much more comfortable.  The two methods of which one includes GUI another doesn’t. The following one is slightly different and requires a Word application installed on your system.To install docx2pdf : The first one will be without GUI: pip install docx2pdf Fig.1. Python Code Explanation : The convert() function takes two arguments that are the abs path of the file you want to convert and where you want to save. You can do batch convert by providing the folder path. This library also allows using CLI instead of writing a code in a separate file. Fig.2. CLI commands To implement this using GUI, you must install Py...

My experience of Capgemini Interview 2020

My experience of Capgemini Interview 2020 31 August (Online Test) / 5 Sept (Interview) My experience of Capgemini Interview 2020 31 August (Online Test) / 5 Sept (Interview) Hello readers, today I m going to share my Capgemini interview process right from round 1 till the interview round. Syllabus for Capgemini 2020 was a bit different than last time: Capgemini Recuirtment Process Step 1 to Step 4 had following details: Pseudo Code (30 Questions in 30 Mins) English Communication Test (30 Questions in 30 Mins) Aptitude Test (Game Based) (4 Games in 20–24 Mins) Behavioral Competency Profiling (100 Questions in 20 Mins) Step 1: The Pseudo Code section was easy, nothing too difficult. Questions were based on recursion , functions , bit arrays , and time and space complexity . Cut off was above 15 Questions. Step 2: The English Communication Test was slightly boring, in my opinion, it had few questions related to comprehension , fill in the blanks , correct the sentence , and analog...

First Repeating Element | Easy | Techgig

First Repeating Element | Easy | Techgig C++ Solution First Repeating Element | Easy | Techgig C++ Solution The first repeating element is the problem that comes under the Linear Search problem under the Algorithm section. Linear Search or sequential search is a method for finding an element within a list. The algorithm works by selecting and checking each number sequentially until matched. A linear search runs in at the worst linear time and makes at most n comparisons, where n is the length of the list. If each element is equally likely to be searched, then the sequential search has an average case of (n+1)/2 comparisons, but the average case can be affected if the search probabilities for each element vary. The complexity of the linear search is as follows: The basic linear search algorithm has the following steps: Given a list L on n elements with values L0…Ln-1, and target value T, to find the index of the target T in the list L. Set i to 0. If Li = T , the search te...