Habbo Badge Finder


/ Published in: Python
Save to your folder(s)

Un buscador de placas por usuario, ingresas el nickname y el hotel en donde esta registrado el usuario y guarda en un log de texto todas las placas que el usuario tiene.


Copy this code and paste it in your HTML
  1. import urllib2
  2.  
  3. ############################
  4. ############################
  5. #### #### #### ####
  6. #### #### #### ####
  7. #### #### #### ####
  8. #### #### ####
  9. #### #### ####
  10. #### #### ############
  11. #### #### #### ####
  12. #### #### #### ####
  13. ############################
  14. ############################
  15.  
  16. print "Badge Finder Por Cesar Vasquez C (AKA Heellxz).\n"
  17. nick = raw_input(">>Nickname: ")
  18. hotel = raw_input(">>Hotel (Ej: es, com, etc): ")
  19.  
  20. xa = urllib2.urlopen("http://www.habbo." + hotel + "/habblet/ajax/new_habboid?habboIdName=" + nick)
  21. xb = xa.read()
  22.  
  23. id1 = xb[xb.find("<em>")+4:xb.find("</em>")]
  24. id = id1.replace(" ", "")
  25.  
  26. fin = ""
  27.  
  28. a = urllib2.urlopen("http://www.habbo." + hotel + "/myhabbo/badgelist/badgepaging?pageNumber=1&widgetId=10807795&_mypage.requested.account=" + id)
  29. b = a.read()
  30.  
  31. if b.find("badgeListTotalPages") > 0:
  32. x = b[b.find('type="hidden" id="badgeListTotalPages" value="')+46:b.find('type="hidden" id="badgeListTotalPages" value="')+48]
  33. pagz = x.replace('"', '')
  34. else:
  35. pagz = 1
  36.  
  37. for j in range(1, int(pagz) + 1):
  38. a = urllib2.urlopen("http://www.habbo." + hotel + "/myhabbo/badgelist/badgepaging?pageNumber=" + str(j) + "&widgetId=10807795&_mypage.requested.account=" + id)
  39. b = a.read()
  40.  
  41. aux = b[b.find('<ul class="clearfix">'):b.find('<div id="footer">')]
  42. spl = aux.split()
  43.  
  44. for i in spl:
  45. if i.find("url(") == 0:
  46. placa = i[i.find("url(http://images.habbo.com/c_images/album1584/")+47:i.find('.gif)"></li>')]
  47. fin = fin + placa + "\n"
  48. print "Trabajando..."
  49.  
  50. f = open("Placas_log_" + nick + ".txt", "w")
  51. f.write(fin)
  52. f.close()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.