使用glados实现chrome调试android app中的h5

注册地址:https://glados.one/
注册后免费5天使用期限,但是可以每天签到,签到后自动增加1天使用期限。

每天签到太麻烦,经常会忘记,写了个自动签到脚本,有需要的拿去用,找个服务器或者类似Cloud Studio的工作空间,跑起来,再也不用担心忘记签到了。记得将cookie换成你自己的,暂时没验证cookie有效期是多久。

更新:经验证30天之后,签到不是100%成功,没关系,再注册一个账号,更换下cookie,继续。。。

import requests
import time

def auto_sign():
    url = "https://glados.rocks/api/user/checkin"
    headers = {"authority": "glados.rocks",
    "method": "POST",
    "path": "/api/user/checkin",
    "scheme": "https",
    "accept": "application/json, text/plain, */*",
    "accept-encoding": "gzip, deflate, br",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7",
    "content-length": "26",
    "content-type": "application/json;charset=UTF-8",
    "cookie": "_ga=GA1.2.440861826.1624072525; _gid=GA1.2.1855564475.1626049082; _gat_gtag_UA_104464600_2=1; koa:sess=eyJ1c2VySWQiOjg3NTU2LCJfZXhwaXJlIjoxNjUyMDc3NTQxNDEwLCJfbWF4QWdlIjoyNTkyMDAwMDAwMH0=; koa:sess.sig=kYyKuvPOF112XbjDB4uZRmxAAbc",
    "origin": "https://glados.rocks",
    "referer": "https://glados.rocks/console/checkin",
    "sec-ch-ua-mobile": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0"
    }

    data = {
        'token': "glados_network"
    }

    resp = requests.post(url=url, headers=headers, json=data)
    if resp.status_code == 200:
        with open('autosign.log', 'a+') as logfile:
            logfile.write('autosign success!\n')
    else:
        with open('autosign.log', 'a+') as logfile:
            logfile.write('autosign fail!\n')
while 1:
    auto_sign()
    time.sleep(60*60*24)

从此,谷歌不再是路人,chrome调试爽歪歪😄
screen.jpg

# glados 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×