For this purpose we will use subprocess module which is available in (shipped with) python. First import the library. import subprocess Then lets scan for all available wireless networks (make sure you have enabled wifi in your pc/laptop) scan_results =
Linear Trend Detection in a 2D Array in Python
Loops are essential functions in any language. In this tutorial I will show you an example in python, the importance of the loops. In fact, you can use this knowledge for simple game development. First of all we create a
Password Verification in Python 2
This is a very simple password verification code. But it is very effective. Step 1: First we take a user input. That is a test password. Step 2: Call a function to verify the password Step 3: Verify the returns
Parse web pages and write down the content to text files
Please download the source files first, since this post is designed to a specific url only. Before start install BeautifulSoup library. I have described about installation in one of my previous posts. Or you can find it in many websites.
Search JPEG Images on the Internet Using Python 2.X
You have to install BeautifulSoup from. You can install it with pip. (I tried on Ubuntu 14.04 LTS) $ pip install beautifulsoup4 Download MarioVilas google.py from github. Follow this link. And save to your working directory. Now let’s start cording.
A Simple mp3 Player
Remember this is one of the simplest mp3 player you can create. First, we have to copy some mp3 files into the folder where you save the program (or copy to any folder and use the path to that folder).
Record a video with OpenCV and python
First of all you need to install python and OpenCV on your computer. As editor I will use IDLE. (of cause you no that, do you?) Now let’s start programming. Open IDLE and take a new file. Import opencv library
Manipulation of Arrays in Python
In this post I will explain you how to manipulate a numpy array with python. First import numpy and pyplot libraries. import numpy as np import matplotlib.pyplot as plt Then let’s make an arbitrary numpy array. For example, let’s make
Open an URL from a python program
Open a new file in IDLE. Then type the following program. import webbrowser newTab = 2 # open in a new tab, if your browser is already opened # open a URL in your default browser url = “http://www.linoroid.com”
Work with CSV files
In this post I will explain you how to read CSV files with python. To store tabular data we use this simple type of file format. The data can be imported from and exported to CSV files using programs. The