爬出的网站提示: 本系统使用了框架,而您的浏览器不支持框架,以致不能正常显示。请下载高版本的浏览器。 可是我的源码中用的是 Mozilla5.0 以上的 header 头内容,怎么还会出现这种提示呢

2015-04-20 20:24:14 +08:00
 jhony
可能会是因为我的源码需要提交更多的相关内容吗?附上部分代码:
self.user_agent = 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)'
self.headers={'User-Agent':self.user_agent}
self.opener=urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookies))
def getPage(self):
request=urllib2.Request(url=self.loginUrl,data=self.postdata,headers=self.headers)
4634 次点击
所在节点    Python
3 条回复
Orzzzz
2015-04-20 22:23:16 +08:00
爬下来的全是<frame>标签?
jhony
2015-04-21 11:00:37 +08:00
<script src="nocache.js"></script>



<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>学生网上综合系统</title>



</head>

<link rel="stylesheet" href="xsxt.css" type="text/css">











<frameset rows="60,100%" frameborder="YES" framespacing="1">

<frame name="w_top" scrolling="NO" noresize src="top.html" bordercolor="#985AAF">

<frameset cols="194,80%" FRAMEBORDER="YES" framespacing="1" >

<frame name="w_left" src="left.jsp" scrolling="auto" noresize bordercolor="#985AAF">

<frame name="w_right" src="right.jsp" scrolling="auto" noresize bordercolor="#985AAF">

</frameset>

</frameset>

<noframes>

<body>

<font color="red">本系统使用了框架,而您的浏览器不支持框架,以致不能正常显示。请下载高版本的浏览器。</font>

</body>

</noframes>

</html>




何解?
xbaofeng
2015-04-24 16:49:08 +08:00
继续
top.html
left.jsp
right.jsp

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/185040

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX