Request Module Python

Request Module Python Requests allow you to send HTTP/1.1 requests. You can add headers, form data, multipart files, and parameters with simple Python dictionaries, and access the response data in the same way. >>> import requests #Let’s try to get a webpage >>> r = requests.get(“”) Now, we have[…] Continue reading

Python notify2 module


Python notify2 Module In this article we will cover python notify2 module. Python notify2 module enable user to send notification to desktop at any position. Let’s get started. Installation of python notify2 module. pip install notify2 Beagle:~ kumarshubham$ pip install notify2 Collecting notify2 Downloading notify2-0.3.1-py2.py3-none-any.whl Installing collected packages: notify2 Successfully[…] Continue reading

Add Python Environmental Variable in Windows

Add python environmental varibale in windows

Add Python Environmental Variable in Windows This article will show you how to add python environmental variable in windows. Follow my steps . Step 1: Right click on my computer icon and click on last option properties. Step 2: on Left, click on Advanced System Properties. Step 3: Right down,[…] Continue reading

Raspberry pi Controlling Led

  Raspberry pi Controlling Led In this tutorial will show you how to control a Led using raspberry pi. The language used is Python. How to install RPi.GPIO module for python. Explanation of Led. Explanation of breadboard. Explanation of RPi.GPIO python module. Click here to download Rpi.GPIO module In the[…] Continue reading

Simple Python Program to Show Global IP address

Simple Python Program to Show Global IP address   # created by kumar shubham #, # # import urllib2 import re import Tkinter import socket import tkMessageBox try: k=urllib2.urlopen(“”) ip=re.findall(‘\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}’,k) except: tkMessageBox.showerror(‘Internet’,’no internet connection’) main=Tkinter.Tk() main.minsize(200,60) main.title(“Global IP”) frametop=Tkinter.Frame(main) framemid=Tkinter.Frame(main) framebot=Tkinter.Frame(main) frametop.pack() framemid.pack() framebot.pack() host=”Welcome[…] Continue reading

Simple Python Program to Extract links from Web Page

Simple Python Program to Extract links from Web Page #Author Kumar Shubham # # This program will extract all the links from a webpage import sys import urllib2 import re def find_link(url): sys.stdout.write(“Wait a Minute its retrieving.”) try: if url[0:4]!=”http”: url=”http://” + url f=(urllib2.urlopen(url)).read() k=re.findall(‘(src|href)=”(\S+)”‘,f) k=set(k) print “The Links[…] Continue reading

Server using python

Server using python. Python modue SimpleHTTPServer will let to make any directory to server. Just open terminal and go to that directory and type “python -m SimpleHTTPServer” without quotes.NOW your current directory is server. Now you can browse you directory in web browser by typing “localhost:8000” without quotes or “local-ip:8000”.[…] Continue reading