Skip to content

Instantly share code, notes, and snippets.

@luscas
Created June 18, 2020 22:56
Show Gist options
  • Save luscas/6b4c9257d92841dbce115ec60bfa924e to your computer and use it in GitHub Desktop.
Save luscas/6b4c9257d92841dbce115ec60bfa924e to your computer and use it in GitHub Desktop.
Disponibilidade de nicks no habbo
import json
from flask import Flask, jsonify, Response
import requests
app = Flask(__name__)
nicks = {
'Ganja',
'Mandioca',
'Tapioca',
'Bueno',
'Biologa',
'Marcelo',
'Matheus',
'Isa',
'Chinelo',
'Lizzy',
'DJ',
'Basuca',
'Flash',
'Lucas',
'Flash',
'Puzzle',
'girl',
'boy',
'advogada',
'lixo',
'feio',
'feia',
'caixa',
'tampa',
'acesso',
'Energia',
'Barra',
'Fone',
'Mesa',
'Pisca',
'Foto',
'Fita',
'Pivete',
'Piveta',
'Guri',
'Guria'
}
disponiveis = []
indisponiveis = []
for nick in nicks:
r = requests.get('https://www.habbo.com.br/api/public/users?name=%s' % nick)
data = r.json()
isAvailable = data.get('error')
if(isAvailable):
disponiveis.append(nick)
else:
indisponiveis.append(nick)
@app.route('/')
def index():
return Response(json.JSONEncoder().encode({
"disponiveis": disponiveis,
"indisponivel": indisponiveis
}), mimetype='application/json')
@app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for that user
return 'User %s' % username
@hugogvb
Copy link

hugogvb commented Mar 19, 2025

show nick available in 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment