irokemr

Scanner placas de habbo

Jan 28th, 2021 (edited)
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.01 KB | None | 0 0
  1. import requests
  2. import os
  3.  
  4.  
  5.  
  6. HabboID = input("Escribe el nombre del keko: ")
  7.  
  8. os.system("cls")
  9. print("Elige el hotel: es/com/fi/com.br/fr/nl/de/it/com.tr")
  10. Hotel = input("hotel: ")
  11. response = requests.get(f'https://www.habbo.{Hotel}/api/public/users?name={HabboID}')
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. HabboID = response.json()['uniqueId']
  21.  
  22.  
  23.  
  24. print(HabboID)
  25. os.system("cls")
  26.    
  27. url= f'https://www.habbo.{Hotel}/api/public/users/{HabboID}/badges'
  28.  
  29.  
  30.  
  31. print("Scaneando placas...Espera un momento")
  32.  
  33. print("Fichero creado: " + HabboID +".html")
  34.  
  35. r= requests.get(url)
  36. habbo = r.text
  37.  
  38. habbo = r.json()
  39.  
  40.  
  41. archivo = open(HabboID + ".html", "a")
  42.  
  43.  
  44. archivo.write("<link href='https://jose89fcb.webcindario.com/css/HabboCamara.css' rel='stylesheet'>")  
  45. archivo.write("<div class='row simple-block' id='habbo-badges-block'>")
  46.  
  47. archivo.write("<center>Placas de: " + "<b>"+ response.json()['name'] + "</b></center>")
  48. archivo.write("<center><img  title="+ response.json()['name']+" src='https://www.habbo.es/habbo-imaging/avatarimage?user="+ response.json()['name']+"&&headonly=1&size=b&gesture=sml&head_direction=4&action=std'></center>")
  49. archivo.close()
  50.    
  51.  
  52.  
  53.  
  54. for Habboinfo in habbo:
  55.  
  56.  archivo = open(HabboID + ".html", "a")
  57.  
  58.  
  59.    
  60.  
  61.  
  62.  
  63.  
  64.  archivo.write("<center><table width='220' border='0' cellspacing='0' cellpadding='1'>")
  65.  archivo.write("<tr bgcolor='#990033' align='center'>")
  66.  archivo.write("<td><b><font hidden color='#FFFFFF'>Titular del cuadro</font></b></td>")
  67.  
  68.  archivo.write("<tr bgcolor='#990033'>")
  69.  
  70.  archivo.write("<table width='40%' border='0' cellspacing='0' cellpadding='4'>")
  71.  archivo.write("<tr bgcolor='#FFFFFF'>")
  72.  archivo.write("<td><img   title='"+ Habboinfo['description']+"'  src=https://images.habbo.com/c_images/album1584/"  + Habboinfo["code"]  +".gif" +">"  +"<br>"+"<b>Nombre:</b> "+ Habboinfo["name"] +"<br>"+ "<b>Descripción:</b> "+ Habboinfo["description"]+ "<br>"+ "<b>Código:</b> "+ Habboinfo["code"] + "</td>")
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  archivo.close()
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
Add Comment
Please, Sign In to add comment