Advertisement
Guest User

HayZe

a guest
May 25th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. # '-------------------------------'
  2. # Python resolver
  3. # Coded: 12/06/2014 01:45
  4. # Version: 1
  5. # By NeoxiZ
  6. # '-------------------------------'
  7. import urllib2
  8. import sys
  9. # Classes couleurs
  10. BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
  11. def has_colours(stream):
  12. if not hasattr(stream, "isatty"):
  13. return False
  14. if not stream.isatty():
  15. return False
  16. try:
  17. import curses
  18. curses.setupterm()
  19. return curses.tigetnum("colors") > 2
  20. except:
  21.  
  22. return False
  23. has_colours = has_colours(sys.stdout)
  24. def printout(text, colour=WHITE):
  25. if has_colours:
  26. seq = "\x1b[1;%dm" % (30+colour) + text + "\x1b[0m"
  27. sys.stdout.write(seq)
  28. else:
  29. sys.stdout.write(text)
  30.  
  31. # Resolver:
  32. printout("*\----------------------------------\*\r\n" , RED)
  33. printout("Python ~ Skype Resolver By Neoxiz_\r\n" , GREEN)
  34. printout(" Copyright (c) NeoxiZ\r\n" , GREEN)
  35. printout("*\----------------------------------\*\r\n" , RED)
  36. SKYPEAPI = "http://api.com/api.php?pseudo="
  37. printout("> Skype Username: " , RED)
  38. SKYPEUSERNAME = raw_input()
  39. SKYPEAPI = SKYPEAPI + SKYPEUSERNAME
  40. webFile = urllib2.urlopen(SKYPEAPI).read()
  41. #if webFile == ("Invalid Key"):
  42. # printout("Error", RED)
  43. #else:
  44. printout(webFile, GREEN)
  45. print('\r\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement