Código
#!usr/bin/python #URL Shorter 0.1 #Coded By Doddy H import urllib2,re,sys def toma(web) : nave = urllib2.Request(web) nave.add_header('User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5'); op = urllib2.build_opener() return op.open(nave).read() def head(): print """ @ @ @@@@@ @ @@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@ @@@ @@ @@ @@@ @@ @ @ @@@@@ @ @@@ @@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @@@@ @ @ @@@@@ @@@ @ @ @@@ @ @ @@@ @ Coded By Doddy H """ def copyright(): print "\n\n(C) Doddy Hackman 2012\n" raw_input() sys.exit(1) head() url = raw_input("\n\n[+] URL : ") try: code = toma("http://tinyurl.com/api-create.php?url="+url) print "\n[+] URL Shorter : "+code except: print "[-] Error\n" copyright() # The End