Simple Python Program to Show Global IP address

Simple Python Program to Show Global IP address   # created by kumar shubham # http://hackaholic.info, http://hackaholic.co.in # www.youtube.com/juniourkawasakicool # www.facebook.com/hackaholic.info import urllib2 import re import Tkinter import socket import tkMessageBox try: k=urllib2.urlopen(“http://hackaholic.info/ip.php”) k=k.read() 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

Plz Share Share on FacebookShare on Google+Share on LinkedInTweet about this on TwitterEmail this to someoneShare on RedditShare on TumblrDigg thisBuffer this pagePrint this pagePin on PinterestShare on StumbleUponFlattr the author

Simple Python Program to Extract links from Web Page

Simple Python Program to Extract links from Web Page #Author Kumar Shubham # http://hackaholic.info # 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

Plz Share Share on FacebookShare on Google+Share on LinkedInTweet about this on TwitterEmail this to someoneShare on RedditShare on TumblrDigg thisBuffer this pagePrint this pagePin on PinterestShare on StumbleUponFlattr the author