Last active
January 14, 2022 09:16
-
-
Save i-sync/aed2382a709e701657af8ee721ecdecc to your computer and use it in GitHub Desktop.
Hostloc Auto Sign Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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