#!/usr/bin/env python2
# python2 bulk_register.py < accounts.txt > registered.txt
# format accounts.txt like `username:password:email`
import requests
import sys
accounts = [a.split(":") for a in sys.stdin.read().split("\n") if a.strip() != ""]
base = "https://feelinsonice.appspot.com"
for account in accounts:
username, password, email = account
reg = requests.post(base + "/bq/register", data={
"req_token": "9301c956749167186ee713e4f3a3d90446e84d8d19a4ca8ea9b4b314d1c51b7b",
"timestamp": 1373209025,
"email": email,
"password": password,
"age": 19,
"birthday": "1994-11-27",
}, headers={"User-agent": None})
if not reg.json()["logged"]:
continue
nam = requests.post(base + "/ph/registeru", data={
"req_token": "9301c956749167186ee713e4f3a3d90446e84d8d19a4ca8ea9b4b314d1c51b7b",
"timestamp": 1373209025,
"email": email,
"username": username
}, headers={"User-agent": None})
if not nam.json()["logged"]:
continue
sys.stdout.write(":".join(account) + "\n")
sys.stdout.flush()