Skip to content

Commit

Permalink
减少依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
luzy99 committed Feb 1, 2021
1 parent e79fa7e commit bc14e6d
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
verify_ssl = true
name = "pypi"

[packages]
requests = "~=2.23.0"
beautifulsoup4 = "~=4.9.3"
Js2Py = "~=0.70"

[dev-packages]
pyinstaller = "*"

[requires]
python_version = "3.7"
183 changes: 183 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion login.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def login(cardnum, password):
# 获取登录页面表单,解析隐藏值
url = "https://newids.seu.edu.cn/authserver/login?goto=http://my.seu.edu.cn/index.portal"
res = ss.get(url)
soup = BeautifulSoup(res.text, 'lxml')
soup = BeautifulSoup(res.text, 'html.parser')
attrs = soup.select('[tabid="01"] input[type="hidden"]')
for k in attrs:
if k.has_attr('name'):
Expand Down

0 comments on commit bc14e6d

Please sign in to comment.