CGI的网址怎么爬?
地址:http://10.0.0.12/web/guest/cn/websys/webArch/mainFrame.cgi点击不同的下级链接都是显示这个地址。
使用如下代码
import requests
url = "http://10.0.0.12/web/guest/cn/websys/webArch/mainFrame.cgi"
req = requests.get(url)
html = req.text
print (html)
输出结果如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"><html lang="cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="-1"><title>whShipping - Web Image Monitor</title></head><frameset rows="64,*" frameborder="0" border="0" framespacing="0"><frame noresize src="header.cgi" name="header" marginheight="0" marginwidth="0" scrolling="no" title="页眉区域"><frame name="work" marginheight="0" marginwidth="0" title="" src="topPage.cgi"></frameset></html>
vpn?? 10开头的ip是c类的。这个地址是内部网络。。没有办法打开。
页:
[1]