Skip to content

Instantly share code, notes, and snippets.

@i-sync
Last active January 14, 2022 09:16
Show Gist options
  • Select an option

  • Save i-sync/aed2382a709e701657af8ee721ecdecc to your computer and use it in GitHub Desktop.

Select an option

Save i-sync/aed2382a709e701657af8ee721ecdecc to your computer and use it in GitHub Desktop.
Hostloc Auto Sign Script
import requests
import random
import time
def post_loc(users):
def get_loc(datas):
session = requests.session()
session.post("https://www.hostloc.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1",data=datas)
for x in range(0,10):
session.get(f'https://www.hostloc.com/space-uid-{random.randint(20000,30000)}.html')
time.sleep(random.randint(2,5))
print(datas["username"]+"刷分完成")
time.sleep(random.randint(20,30))
for username,password in users.items():
get_loc({"username":username,"password":password})
users = {
'xxxx':'xxxx',
'yyyy':'yyyy'
}
post_loc(users)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment