Le-Ownect

[ HABBO ] Scanner by Truck

May 4th, 2021
637
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2.  
  3. #v1_scanner by Truck
  4.      
  5. print("Bem-vindo ao Scanner by CronosAPI.")
  6.  
  7. link = ("https://www.habbo.com.br/api/public/users?name=")
  8. habboName = input("nome habbo: ")
  9. resultado = (link + habboName)
  10.  
  11. # Faz uma chamada de API e armazena a resposta
  12. url = resultado
  13. r = requests.get(url)
  14. print("Status code:", r.status_code)
  15.  
  16. # Armazena a resposta da API em uma variável
  17. response_dict = r.json()
  18.  
  19. #Respostas da API
  20. print("Nome Habbo: ", response_dict['name'])
  21. print("UNIQUE ID: ", response_dict['uniqueId'])
  22. print("Status: ", response_dict['online'])
  23. print("Ultimo Acesso: ", response_dict['lastAccessTime'])
  24. print("Criado em: ", response_dict['memberSince'])
  25. print("Missão: ",response_dict['motto'])
  26. print("FigureString : ",response_dict['figureString'])
  27. print("Perfil Visivel : ",response_dict['profileVisible'])
  28. print("Level : ",response_dict['currentLevel'])
  29.  
  30. # Explora informações sobre os repositórios
  31. repo_dicts = response_dict['motto']
  32. print("Repositories returned:", len(repo_dicts))
  33.  
  34. online = response_dict['online']
  35. name = response_dict['name']
  36. uniqueId = response_dict['uniqueId']
  37. lastAccessTime = response_dict['lastAccessTime']
  38. memberSince = response_dict['memberSince']
  39. motto = response_dict['motto']
  40. figureString = response_dict['figureString']
  41. profileVisible = response_dict['profileVisible']
  42. currentLevel = response_dict['currentLevel']
  43.  
  44. filename = 'scanner.html'
  45. with open(filename, 'w') as file_object:
  46.  
  47.     img = ("https://www.habbo.com.br/habbo-imaging/avatarimage?hb=image&user=")
  48.     img_r = img + name
  49.     print(img_r)
  50.     file_object.write('<h3><p style="font-family:verdana">Scanner</p></h3> </Br></Br>')
  51.     file_object.write("<img src=" + img_r + " /> </Br>")
  52.     file_object.write("Nome Habbo: " + name + "</Br>")
  53.     file_object.write("Level: " + str(currentLevel) + "</Br>")
  54.    
  55.     if online:
  56.        file_object.write("Status: " "Online/" + str(online) + "</Br>")
  57.     else :
  58.        file_object.write("Status: " "Offline/" + str(online) + "</Br>")
  59.     if profileVisible:
  60.        file_object.write("Perfil:" "Visivel/" + str(profileVisible) + "</Br>")
  61.     else :
  62.        file_object.write("Perfil:" "Oculto/" + str(profileVisible) + "</Br>")
  63.     file_object.write("UNIQUE ID: " + uniqueId + "</Br>")
  64.     file_object.write("Ultimo Acesso: " + lastAccessTime + "</Br>")
  65.     file_object.write("Missão: " + motto + "</Br>")
  66.     file_object.write("FigureString: " + figureString + "</Br>")
  67.     file_object.write("Criado em: " + memberSince + "</Br>")
  68.    
  69.  
  70.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×