Rohan Singh

Rohan Singh

143 Articles Published

Articles by Rohan Singh

Page 9 of 15

Downloading PDFs with Python using Requests and BeautifulSoup

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 3K+ Views

Requests and BeautifulSoup are Python libraries that can download PDFs from web pages. The requests library sends HTTP requests and receives responses, while BeautifulSoup parses HTML to extract PDF links. In this article, we will understand how to download PDFs using these libraries in Python. Installing Dependencies Before using the BeautifulSoup and Requests libraries, we need to install them using pip commands − pip install requests pip install beautifulsoup4 Method 1: Direct PDF Download If you have a direct PDF URL, you can download it directly using requests − import requests ...

Read More

Download XKCD Comics using Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 845 Views

XKCD is a popular webcomic that features humor, science, and geek culture. The comic is famous for its witty jokes as well as references to culture and science. We can download comics using the XKCD API with Python's requests and Pillow libraries. In this article, we will download XKCD comics using Python. Understanding XKCD API XKCD provides an open API that allows developers to access comics programmatically. To use the API, we send an HTTP GET request to the URL https://xkcd.com/{comic_id}/info.0.json. The request returns a JSON object containing information about the specified XKCD comic, including the image URL. ...

Read More

Download Instagram profile pic using Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 2K+ Views

Instagram is one of the most popular social media platforms that allows users to share photos and videos with their followers. As an Instagram user, you might come across some interesting profile pictures that you may want to save or download. In this article, we will download Instagram profile pics using Beautiful Soup and the Instaloader library in Python. Method 1: Using Beautiful Soup and Requests Module In this method, we send a GET request to the user's Instagram profile URL using the requests module and it returns the HTML response. We need to parse the HTML response ...

Read More

Download Anything to Google Drive using Google Colab

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 3K+ Views

Google Colab is a free cloud platform provided by Google that offers CPU, GPU, and other infrastructure to run complex computations and data analysis. Google Colab provides a Jupyter notebook environment to run Python code. We can download files directly to Google Drive using Google Colab by mounting our Google Drive in the Colab environment. In this article, we will learn how to download files to Google Drive using Google Colab. Step 1: Setting up Google Colab If you have a Google account, you can open the Google Colab website and click on "New Notebook" to create a ...

Read More

Download and install pip Latest Version

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 6K+ Views

Pip is a Python package manager that allows you to easily install, manage and uninstall Python packages. To download and install pip latest version you can do it by downloading the script from the official Python website or by using some commands in your local Command prompt. In this article, we will see the steps to download and install Pip's latest version in Python. Steps to Download and Install Pip Step 1: Check if pip is already installed Pip might be already installed in your system. You can check if pip is already installed in your system ...

Read More

Dora module in Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 734 Views

The Dora module is a Python library designed for data analysis and manipulation. Built on top of the pandas library, it provides comprehensive functionality to streamline data science workflows with an intuitive API. Installation of Dora Module The Dora module can be installed using pip. Run the following command in your terminal ? pip install dora Key Features of Dora Module The Dora module offers several powerful features for data science tasks ? Data Cleaning − Provides methods for removing duplicates, handling missing values, and data type conversions to prepare clean ...

Read More

Donut Chart using Matplotlib in Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 3K+ Views

A Donut chart is a circular chart that shows the relative representation of data with a hole in the center, distinguishing it from a pie chart. Python's Matplotlib library provides simple methods to create customizable donut charts for visualizing categorical data proportions. Installing Matplotlib Matplotlib is a data visualization library in Python that allows you to create a wide range of charts. To install it, use the following command ? pip install matplotlib Basic Donut Chart A donut chart is created using plt.pie() with the wedgeprops parameter to define the inner hole. Here's ...

Read More

Donut Chart in Pygal

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 236 Views

Pygal is a Python library used for creating interactive graphs and charts for data visualization. A donut chart is a variation of a pie chart with a hollow center, making it easier to read values and add additional information in the middle space. Installing Pygal Before creating donut charts, install the Pygal library using pip ? pip install pygal Basic Donut Chart Create a simple donut chart using pygal.Pie() with the inner_radius parameter ? import pygal # Create a Donut chart donut_chart = pygal.Pie(inner_radius=0.4) # Add data to the ...

Read More

Docopt module in Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 1K+ Views

The Docopt module in Python is used to create command-line interfaces. Similar to other command line arguments and options, docopt allows us to define command line arguments and options and also generate help messages and usage strings for the program. In this article, we will understand how the Docopt module is defined and how it is used to create a command line interface. Installation You can install the Docopt module before using it with the help of the pip command in Python. To install the Docopt module type the following command on your terminal or command prompt ? ...

Read More

dllist class of llist module in Python

Rohan Singh
Rohan Singh
Updated on 27-Mar-2026 275 Views

The dllist is a class of the llist module in Python that is used to implement a doubly linked list with functionality for insertion, deletion, and traversal of elements. The dllist class provides methods for adding, removing, and iterating over the list in both directions. Creating a dllist Object To create a dllist object, we need to first import the llist module from the pyllist package. We can then use the dllist class constructor to create a new instance of a doubly-linked list ? from pyllist import dllist # create an empty doubly-linked list my_list ...

Read More
Showing 81–90 of 143 articles
« Prev 1 7 8 9 10 11 15 Next »
Advertisements