Found 34471 Articles for Programming

Downloading PDFs with Python using Requests and BeautifulSoup

Rohan Singh
Updated on 10-Jul-2023 13:13:08

2K+ Views

Request and BeautifulSoup are Python libraries that can download any file or PDF online. The request library is used to send HTTP requests and receive responses. BeautifulSoup library is used to parse the HTML received in the response and get the downloadable pdf link.In this article, we will understand how we can download PDFs using Request and Beautiful Soup in Python. Installing Dependencies Before using the BeautifulSoup and Request libraries in Python we need to install the libraries in our system using the pip command. To install the request and BeautifulSoup and Request library run the following command in ... Read More

Download XKCD Comics using Python

Rohan Singh
Updated on 10-Jul-2023 13:05:05

577 Views

XKCD is a popular webcomic that features humor, science, and geek culture. The comic is famous for its witty jokes as well as a reference to culture and science. We can download the comic using XKCD API and Python request and pillow library. In this article, we will download XKCD comics using Python. Understanding XKCD API XKCD provides an open API that gives permission to the developers to access the comics using the API. To use the API, we need to send an HTTP GET request to the URL - `http://xkcd.com/info.0.json`. The request returns a JSON object that contains information ... Read More

Download Video in MP3 format using PyTube

Rohan Singh
Updated on 10-Jul-2023 13:03:01

9K+ Views

Pytube is a Python library that is used to download any youtube video easily. It offers a simple and intuitive interface, making it easy to use even for those who are not familiar with programming. It provides the option to download a video in various formats like mp4, mp3, 3gp, webm, etc. In this article, we will learn step by step process of how to download the video in mp3 format using Pytube. Install Pytube Before using the Pytube module we need to download the Pytube library in our system by using the Python package manager. To download ... Read More

Download Instagram profile pic using Python

Rohan Singh
Updated on 10-Jul-2023 13:01:17

1K+ Views

The Instagram profile pic can be downloaded using the Beautiful Soup and Request module in Python.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 Soap and the Instaloader library in Python. Method 1: Using Beautiful Soap and Request module In this method, we send a GET request to the User's Instagram profile URL using the request ... Read More

Download Anything to Google Drive using Google Colab

Rohan Singh
Updated on 10-Jul-2023 12:57:05

2K+ Views

Google Collab is a free online Platform provided by Google that provides CPU, GPU, and other infrastructure to run complex computation and data analysis. Google Collab provides a jupyter notebook environment to run Python code. We can download anything to google drive using google collab by mounting our google drive on Collab. In this article, we will understand how we can download anything to google drive using google collab. Step 1: Setting up google collab If you have a Google account you can open the google collab website and click on “New Notebook” to create a new Jupyter ... Read More

Download and install pip Latest Version

Rohan Singh
Updated on 10-Jul-2023 12:46:06

4K+ 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 the pip is already installed Pip might be already installed in your system. You can check if pip is already installed in your system using ... Read More

Download a file over HTTP in Python

Rohan Singh
Updated on 10-Jul-2023 12:43:58

368 Views

In Python, we download a file over HTTP using Python built-in libraries like urllib, request, and httplib. HTTP is a hypertext transfer protocol and is used to access data over the world wide web.HTTP requests are typically initiated by a client, such as a web browser, and are sent to a server that hosts the requested resource. The request usually includes a method, such as GET or POST, a Uniform Resource Locator (URL) that identifies the resource, and optional headers that provide additional information about the request. In this article, we will understand how to use urllib and request libraries ... Read More

Dora module in Python

Rohan Singh
Updated on 10-Jul-2023 12:41:07

308 Views

Dora module is a Python library that is used for data analysis and manipulation. The Dora module is built on top of the pandas library in Python and provides various functionalities for data analysis and manipulation. In this article, we will understand and see the features of the Dora Module in Python. Installation of Dora Module The Dora module can be installed using the Python package manager and pip command in Python. Type the following command to install the Dora module in Python. Pip install dora Features Some of the features that the Dora module provides for data ... Read More

Donut Chart using Matplotlib in Python

Rohan Singh
Updated on 10-Jul-2023 12:35:34

1K+ Views

A Donut chart is a circular chart that shows the relative representation of the data in a circular way. Donut and pie charts look similar but the donut chart has a hole in the center of the chart whereas the pie chart doesn’t. A donut chart can be created for a dataset containing various groups in different proportions using Matplotlib. In this article, we will create a Donut chart using Matplotlib. Algorithm The donut chart in Matplotlib can be drawn using the methods provided by the matplotlib library. We can follow the below algorithm to make a Donut chart ... Read More

Donut Chart in Pygal

Rohan Singh
Updated on 10-Jul-2023 12:21:55

78 Views

Pygal is a Python library that is used for creating graphs and charts for data visualization. The donut chart is a type of pie chart with a hole in the middle. Donut chat can be easily created using the Pygal library. In this article, we will visualize sample data using a Donut chart. Installing Pygal library Before we start using the Pygal module, we need to install the Pygal library in our system by using the Python package manager. Type the following command in your terminal or command prompt to install the Pygal library. pip install pygal Algorithm ... Read More

Advertisements