【发布时间】:2013-08-29 17:23:18
【问题描述】:
我要获取页面192.168.1.1 /basic/home_dhcplist.htm
来自路由器,但它在开始时要求输入用户名和密码。
我正在通过 urllib2 在 Python 中获取页面
import urllib2
response = urllib2.urlopen('http://192.168.1.1/basic/home_dhcplist.htm')
html = response.read()
str="Prasads"
value= html.find(str)
print value
if value!=-1 :
print "found"
else:
print "not found"
response.close()
【问题讨论】:
-
路由器的详细信息将不胜感激
标签: python passwords authorization