Skip to content

Commit

Permalink
update to fit new uuid feature
Browse files Browse the repository at this point in the history
  • Loading branch information
SY-LG committed Apr 19, 2024
1 parent 2d438af commit b0071be
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sjtu_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ def get_params_uuid_cookies(url):
headers={"accept-language": "zh-CN"}
)
params = parse_params(r.url)
uuid = BeautifulSoup(
r.content, "html.parser"
).find(
"input",
attrs={
"type": "hidden",
"name": "uuid"
}
)["value"]
uuid = BeautifulSoup(r.content, 'html.parser').find('a', attrs={'id': 'firefox_link'})['href'].split('=')[1]
cookies = r.cookies
for i in r.history:
cookies.update(i.cookies)
Expand Down

0 comments on commit b0071be

Please sign in to comment.