V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
jhony
V2EX  ›  Python

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

  •  
  •   jhony · 2015-04-20 20:24:14 +08:00 · 4619 次点击
    这是一个创建于 3302 天前的主题,其中的信息可能已经有所发展或是发生改变。
    可能会是因为我的源码需要提交更多的相关内容吗?附上部分代码:
    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)
    3 条回复    2015-04-24 16:49:08 +08:00
    Orzzzz
        1
    Orzzzz  
       2015-04-20 22:23:16 +08:00
    爬下来的全是<frame>标签?
    jhony
        2
    jhony  
    OP
       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
        3
    xbaofeng  
       2015-04-24 16:49:08 +08:00
    继续
    top.html
    left.jsp
    right.jsp
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   760 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 22:33 · PVG 06:33 · LAX 15:33 · JFK 18:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.