Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # '-------------------------------'
- # Python resolver
- # Coded: 12/06/2014 01:45
- # Version: 1
- # By NeoxiZ
- # '-------------------------------'
- import urllib2
- import sys
- # Classes couleurs
- BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
- def has_colours(stream):
- if not hasattr(stream, "isatty"):
- return False
- if not stream.isatty():
- return False
- try:
- import curses
- curses.setupterm()
- return curses.tigetnum("colors") > 2
- except:
- return False
- has_colours = has_colours(sys.stdout)
- def printout(text, colour=WHITE):
- if has_colours:
- seq = "\x1b[1;%dm" % (30+colour) + text + "\x1b[0m"
- sys.stdout.write(seq)
- else:
- sys.stdout.write(text)
- # Resolver:
- printout("*\----------------------------------\*\r\n" , RED)
- printout("Python ~ Skype Resolver By Neoxiz_\r\n" , GREEN)
- printout(" Copyright (c) NeoxiZ\r\n" , GREEN)
- printout("*\----------------------------------\*\r\n" , RED)
- SKYPEAPI = "http://api.com/api.php?pseudo="
- printout("> Skype Username: " , RED)
- SKYPEUSERNAME = raw_input()
- SKYPEAPI = SKYPEAPI + SKYPEUSERNAME
- webFile = urllib2.urlopen(SKYPEAPI).read()
- #if webFile == ("Invalid Key"):
- # printout("Error", RED)
- #else:
- printout(webFile, GREEN)
- print('\r\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement