【发布时间】:2014-10-15 14:48:32
【问题描述】:
我有一个可以使用网页界面管理的设备。
设备地址可以是:
http://10.18.25.25/restart
在网页中带有提交按钮:
<form action="/restart/restart" method="POST" name="restartForm">
<input type="submit" value="OK">
</form>
我正在尝试使用 python 模块请求来自动点击该网页上的按钮。
from urllib3 import requests
r = requests.get('http://10.18.25.25/restart', auth=('username', 'password'))
有什么想法吗??
【问题讨论】: