Hi friends,
In this post, we'll see a python script that takes a movie or a TV series name as an input and fetches its IMDB rating and summary from the IMDB website. The script uses Beautiful soup library in Python to extract the ratings and summary from the website. Here is the script to achieve the task.
import requests
from bs4 import BeautifulSoup
def getTitle(url):
html = requests.get(url)
...
Wednesday, 31 May 2017
GATE - Relations 1

Hi friends,
This is a post under the series of posts labeled as GATE. I had created short hand written notes during my GATE preparation to revise for various topics. The posts under label GATE include
formulae, equations, properties and other important points...
GATE - Relations 2

Hi friends,
This is a post under the series of posts labeled as GATE. I had created short hand written notes during my GATE preparation to revise for various topics. The posts under label GATE include
formulae, equations, properties and other important points...
Live Cricket Scores Using Python Script
Hi friends,
In this post, we'll see a python script to get the live cricket score of a particular match using espncricinfo site. The script browses the espncricinfo website and lists all the live matches going on. The user can then select a specific match from the list and the script shows the live scores of the selected match. The script also fetches the score of the selected match after every...
Tuesday, 30 May 2017
GATE - Compilers

Hi friends,
This is a post under the series of posts labeled as GATE. I had created short hand written notes during my GATE preparation to revise for various topics. The posts under label GATE include
formulae, equations, properties and other important points...
GATE - Computer Networks

Hi friends,
This is a post under the series of posts labeled as GATE. I had created short hand written notes during my GATE preparation to revise for various topics. The posts under label GATE include
formulae, equations, properties and other important points...
Python script to detect changes in a webpage
Hi friends,
In this post, we'll see a python script to detect changes (if any) in a URL webpage. Results are around the corner and the anxiety among the students make them refresh the results page every second to see if the results have been declared or not. So, this post helps them to seat calmly and let the python script notify about the results. The python script keeps checking the results...
Monday, 29 May 2017
Python script to list your most visited websites
Hi friends,
In this post, I'll share with you a python script to determine the top 10 visited websites using your Chrome browser. The python script given below does the following four important tasks which are implemented using four different functions:
Finding the location of the Chrome history database
Executing the query on the database to get the URLs visited and associated information
Count...
Download Udemy Videos Using Terminal
Hi friends,In this post, we'll see how we can download the videos from the Udemy courses you have enrolled in. Although, Udemy do not support options to download their videos but there is a python library called udemy-dl which allows us to download Udemy videos. In this post, we'll see how to set up the same.
Prerequisite: You need to have Python installed in your system to use udemy-dl.
You...
Sunday, 28 May 2017
Download YouTube Videos Using Terminal
Hi friends,
There is a cool library named youtube-dl in Python that allows users to download their favorite YouTube videos using the video URL. In this post, I'll show you how to install and use the youtube-dl library in your system.
For Windows users:
You need to download the exe file from here and place it in any location on your PATH except for %SYSTEMROOT%\System32 (e.g. do...
Wednesday, 24 May 2017
Remove Nth Node from List End
Given a linked list, remove the nth node from the end of list and return its head.
For example,Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
* If n is greater than the size of the list, remove the first node of the list.
Try doing it using constant additional space.
Approach:...