reg: optional proxy; README: grant status + verified model set

This commit is contained in:
ENI
2026-11-01 21:49:34 +03:00
parent 517e86b2e6
commit 1c8ef75664
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -124,6 +124,9 @@ def follow(s, url, hops=8):
def reg(acc, name=None):
s = requests.Session()
s.headers.update({'User-Agent': UA, 'Accept-Language': 'en-US,en;q=0.9'})
proxy = os.environ.get('MODELOC_PROXY')
if proxy:
s.proxies = {'http': proxy, 'https': proxy}
# приглашение должно лечь в cookie ДО создания аккаунта, иначе 0 кредитов
try:
s.get(MC + '/i/' + INVITE, timeout=30)