Programming Articles

Page 102 of 2547

How to Scroll Down Followers Popup on Instagram using Python

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

Instagram is a popular social media platform that allows users to connect and share content with their followers. As a developer, you might need to automate certain tasks on Instagram, such as extracting follower data. Instagram's follower popup only loads a limited number of followers at a time, requiring users to scroll down to view more followers. In this article, we will explore how to scroll down the followers popup on Instagram using Python and Selenium WebDriver. Prerequisites Before starting, you need to install the required dependencies: pip install selenium You also need to ...

Read More

How to save pyttsx3 results to MP3 or WAV file?

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

The pyttsx3 is a Python library that provides a simple interface for text-to-speech (TTS) synthesis. Text to Speech converts written text to spoken words and allows customization of various speech parameters. This article demonstrates how to save pyttsx3 results to MP3 or WAV files using different methods. Basic Process Overview The general steps for saving pyttsx3 output to audio files are: Initialize the pyttsx3 engine Configure TTS properties (optional) Use save_to_file() to create a temporary WAV file Convert or copy the file to desired format Creating the Base WAV File First, let's create ...

Read More

Differences and Applications of List, Tuple, Set and Dictionary in Python

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 5K+ Views

Python provides four fundamental built-in data structures: lists, tuples, sets, and dictionaries. Each has unique characteristics that make them suitable for different programming scenarios. Understanding their differences helps you choose the right data structure for your specific needs. List A list is an ordered, mutable collection enclosed in square brackets []. Lists allow duplicate elements and support indexing, slicing, and modification operations. Key Features Mutable: You can add, remove, or modify elements after creation Ordered: Elements maintain their insertion order Duplicates allowed: Same values can appear multiple times Indexing and slicing: Access elements by position ...

Read More

How to Save File with File Name from User Using Python?

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

In Python, saving files with user-defined file names is a common requirement in various applications. By allowing users to specify the file name, we can provide them with a more personalized and customizable experience. This article will explain the process of saving files with file names provided by the user, using Python. Algorithm A general algorithm for saving file with file name from user is as follows: Prompt the user to enter the desired file name. ...

Read More

Flask form submission without Page Reload

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 4K+ Views

Form submission is a crucial part of web applications, but traditional form submissions require page reloads, which can feel slow and disrupt user experience. Flask, combined with AJAX, allows you to submit forms asynchronously without page reloads, creating a smoother and more responsive application. Basic Flask Setup Let's start with a basic Flask application structure ? from flask import Flask, render_template, request, jsonify app = Flask(__name__) @app.route('/') def home(): return render_template('index.html') if __name__ == '__main__': app.run(debug=True) Creating the Flask Backend Here's the ...

Read More

Get latest Government job information using Python

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 282 Views

Government jobs offer stability, good benefits, and secure career prospects. Finding the latest job notifications can be time-consuming when done manually. This article demonstrates how to automate the process of collecting government job information using Python web scraping techniques. Required Libraries We need two essential Python packages for web scraping ? pip install requests beautifulsoup4 Import the required libraries in your Python script ? import requests from bs4 import BeautifulSoup Web Scraping Algorithm The process involves these key steps ? Target identification − Find the government job ...

Read More

Get last n records of a Pandas DataFrame

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 2K+ Views

When working with large datasets in Pandas, you often need to examine the most recent entries. The tail() method provides an efficient way to retrieve the last n records from a DataFrame. Syntax DataFrame.tail(n=5) Parameters: n − Number of rows to return from the end (default is 5) Creating a Sample DataFrame Let's create a DataFrame to demonstrate the tail() method ? import pandas as pd data = {'Name': ['John', 'Mark', 'Alice', 'Julie', 'Lisa', 'David'], 'Age': [23, 34, 45, 19, ...

Read More

How to Run Two Async Functions Forever in Python

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

Async functions, also known as coroutines, are functions that can be paused and resumed during their execution. In Python, the asyncio module provides a powerful framework for writing concurrent code using coroutines. In this article, we will explore how to run two async functions forever using different approaches in Python. Understanding Async Functions Async functions allow for concurrent execution of code without blocking the main thread, enabling efficient utilization of system resources. To define an async function in Python, we use the async keyword before the def statement. Within the async function, we can use the await keyword ...

Read More

Get information about YouTube Channel using Python

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 2K+ Views

YouTube, the world's largest video-sharing platform, hosts millions of channels with diverse content. Using Python and the YouTube Data API, we can programmatically retrieve detailed information about any YouTube channel, including subscriber count, view statistics, and video metrics. Installation First, install the Google API client library ? pip install --upgrade google-api-python-client Getting YouTube API Key To access YouTube data, you need an API key from Google Cloud Console ? Navigate to https://console.cloud.google.com/ to access the Google Cloud Console Create a new project or select an existing one Click "Navigation menu" → ...

Read More

Get Indian Railways Station code Using Python

Atharva Shah
Atharva Shah
Updated on 27-Mar-2026 412 Views

Web scraping is one of the many powerful uses for Python. In this article, we'll discover how to extract Indian Railways station codes using Python. Each Indian railway station has a unique identification code used for ticket reservations, train schedules, and other railway information. Installation First, we need to install the required libraries. Requests is used for sending HTTP requests, while Beautiful Soup is used for parsing HTML content. To install the required packages, open your terminal and run − pip install requests pip install beautifulsoup4 Algorithm Define a function get_html ...

Read More
Showing 1011–1020 of 25,466 articles
« Prev 1 100 101 102 103 104 2547 Next »
Advertisements