• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
PythonForBeginners.com

PythonForBeginners.com

Learn By Example

  • Home
  • Learn Python
    • Python Tutorial
  • Categories
    • Basics
    • Lists
    • Dictionary
    • Code Snippets
    • Comments
    • Modules
    • API
    • Beautiful Soup
    • Cheatsheet
    • Games
    • Loops
  • Python Courses
    • Python 3 For Beginners

Scripts

How to use FTP in Python

Author: PFB Staff Writer
Last Updated: August 27, 2020

Overview This article will show how you can use FTP in Python with the help of the ftplib module. Ftplib The ftplib module in Python allows you to … [Read more...] about How to use FTP in Python

Filed Under: Code Snippets, ftplib, Scripts Author: PFB Staff Writer

Port scanner in Python

Author: PFB Staff Writer
Last Updated: January 4, 2023

This post will show how you can make a small and easy-to-use port scanner program written in Python. There are many ways of doing this with Python, … [Read more...] about Port scanner in Python

Filed Under: Code Snippets, Scripts Author: PFB Staff Writer

How to use ConfigParser in Python

Author: PFB Staff Writer
Last Updated: January 31, 2021

What is Config Parser? The configparser module in Python is used for working with configuration files. It is much similar to Windows INI files. You … [Read more...] about How to use ConfigParser in Python

Filed Under: Code Snippets, Mysql, Scripts Author: PFB Staff Writer

Using the YouTube API in Python

Author: PFB Staff Writer
Last Updated: December 2, 2020

Overview In this post we will be looking on how to use the YouTube API in Python. This program will show how we can use the API to retrieve feeds from … [Read more...] about Using the YouTube API in Python

Filed Under: API, Python On The Web, Scripts Author: PFB Staff Writer

Get the Geo Location of an IP Address

Author: PFB Staff Writer
Last Updated: August 28, 2020

Time for a script again, this one will geolocate an IP address based on input from the user. For this script, we will be using a bunch of Python … [Read more...] about Get the Geo Location of an IP Address

Filed Under: Beautiful Soup, Code Snippets, Scripts Author: PFB Staff Writer

Script : Get the username from a prompt…

Author: PFB Staff Writer
Last Updated: August 28, 2020

This script will ask the user for its username, by using the raw_input function. Then a list of allowed users is created named user1 and user2. The … [Read more...] about Script : Get the username from a prompt…

Filed Under: Code Snippets, Scripts Author: PFB Staff Writer

Python : OS.listdir and endswith( )

Author: PFB Staff Writer
Last Updated: August 27, 2020

This short script uses the os.listdir function (that belongs to the OS module) to search through a given path (".") for all files that endswith … [Read more...] about Python : OS.listdir and endswith( )

Filed Under: Code Snippets, OS, Scripts Author: PFB Staff Writer

Using the web browser in Python

Author: PFB Staff Writer
Last Updated: August 28, 2020

The webbrowser module in Python provides an interface to display Web-based documents. Webbrowser Under most circumstances, simply calling the open() … [Read more...] about Using the web browser in Python

Filed Under: Code Snippets, Scripts Author: PFB Staff Writer

OS.walk in Python

Author: PFB Staff Writer
Last Updated: August 27, 2020

Python has a cool built-in function in the OS module that is called os.walk() . OS.Walk() OS.walk() generate the file names in a directory tree by … [Read more...] about OS.walk in Python

Filed Under: Code Snippets, Scripts Author: PFB Staff Writer

Monitor Apache / Nginx Log File

Author: PFB Staff Writer
Last Updated: August 27, 2020

Count the number of hits in a Apache/Nginx This small script will count the number of hits in a Apache/Nginx log file. How it works This script … [Read more...] about Monitor Apache / Nginx Log File

Filed Under: Code Snippets, Scripts Author: PFB Staff Writer

  • Go to page 1
  • Go to page 2
  • Go to Next Page »

Primary Sidebar

Menu

  • Basics
  • Cheatsheet
  • Code Snippets
  • Development
  • Dictionary
  • Error Handling
  • Lists
  • Loops
  • Modules
  • Scripts
  • Strings
  • System & OS
  • Web

Get Our Free Guide To Learning Python

Most Popular Content

  • Reading and Writing Files in Python
  • Python Dictionary โ€“ How To Create Dictionaries In Python
  • How to use Split in Python
  • Python String Concatenation and Formatting
  • List Comprehension in Python
  • How to Use sys.argv in Python?
  • How to use comments in Python
  • Try and Except in Python

Recent Posts

  • Count Rows With Null Values in PySpark
  • PySpark OrderBy One or Multiple Columns
  • Select Rows with Null values in PySpark
  • PySpark Count Distinct Values in One or Multiple Columns
  • PySpark Filter Rows in a DataFrame by Condition

Copyright © 2012–2025 ยท PythonForBeginners.com

  • Home
  • Contact Us
  • Privacy Policy
  • Write For Us