loginform:自动填写HTML登录表单

时间:2021-05-24 08:27:31
【文件属性】:
文件名称:loginform:自动填写HTML登录表单
文件大小:82KB
文件格式:ZIP
更新时间:2021-05-24 08:27:31
Python 登录表格 loginform是一个用于在给定登录URL,用户名和密码的情况下填写HTML登录表单的库。 系统会自动推断出要填写的表格和字段。 它是在的基础上实现的,因此取决于lxml。 用法 用法非常简单,并通过一个示例很好地说明: >>> from loginform import fill_login_form >>> import requests >>> url = "https://github.com/login" >>> r = requests.get(url) >>> fill_login_form(url, r.text, "john", "secret") ([('authenticity_token', 'FQgPiKd1waDL+pycPH8IGutirTnP69SiZgm0zXwn+VQ='),\n ('login', 'john'), ('passw
【文件预览】:
loginform-master
----setup.py(925B)
----requirements.txt(14B)
----loginform.py(3KB)
----.travis.yml(667B)
----samples()
--------meed.html(66KB)
--------seedrs.json(602B)
--------hautelook.json(363B)
--------osibatteries.json(1KB)
--------plumdistrict.json(408B)
--------fieldglass.html(15KB)
--------zulily.json(267B)
--------meed.json(602B)
--------lot18.html(5KB)
--------fieldglass.json(671B)
--------gilt.html(30KB)
--------zulily.html(19KB)
--------osibatteries.html(29KB)
--------hautelook.html(23KB)
--------lot18.json(246B)
--------gilt2.html(31KB)
--------seedrs.html(10KB)
--------beyondtherack.json(461B)
--------gilt.json(323B)
--------gilt2.json(323B)
--------github.html(7KB)
--------beyondtherack.html(12KB)
--------thefoundary.json(349B)
--------thefoundary.html(14KB)
--------github.json(432B)
--------plumdistrict.html(23KB)
----.bumpversion.cfg(152B)
----README.rst(3KB)
----.coveragerc(36B)
----test_samples.py(2KB)
----NEWS(135B)
----tox.ini(454B)

网友评论