- import requests
-
- cookies = {
- ‘bgPicName’: ‘Default’,
- ‘PHPSESSID’: ”,
- ‘c_expiresintv’: ‘0’,
- ‘c_secure_uid’: ”,
- ‘c_secure_pass’: ”,
- ‘c_secure_ssl’: ”,
- ‘c_secure_login’: ”,
- }
-
- headers = {
- ‘Referer’: ‘https://pt.sjtu.edu.cn/index.php’,
- ‘User-Agent’: ‘Mozilla/5.0 (MSIE 10.0; Windows NT 6.1; Trident/5.0)’,
- ‘sec-ch-ua’: ‘" Not A;Brand";v="66", "Chromium";v="66", "Google Chrome";v="66"’,
- }
-
- response = requests.get(‘https://pt.sjtu.edu.cn/usercp.php’, cookies=cookies, headers=headers)
复制代码
连续30天不登录将被删除帐号
建议两星期执行一次,,, |