推荐学习书目
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
Donate
V2EX  ›  Python

Python3 如果抓 js 生成的 html 网页?

  •  
  •   Donate · Aug 9, 2014 · 5920 views
    This topic created in 4298 days ago, the information mentioned may be changed or developed.
    我是想抓super-ping.com的网页。
    比如说 http://www.super-ping.com/?ping=youtube.com&locale=en

    加载网页时需要过一会儿 "ping ..." 才会变成所需的内容。

    这时应该如何处理?
    9 replies    2014-08-13 13:02:53 +08:00
    pimin
        1
    pimin  
       Aug 9, 2014 via iPhone   ❤️ 1
    http.client
    ehs2013
        3
    ehs2013  
       Aug 9, 2014
    节点列表见 HTML 261 行
    Donate
        4
    Donate  
    OP
       Aug 9, 2014 via Android
    @ehs2013 请问这是怎么找到的。。下次如遇相同情况应该如何处理?
    pimin
        5
    pimin  
       Aug 9, 2014 via iPhone   ❤️ 1
    @Fulminit
    抓包查看浏览器正常访问过程判断就好了
    Donate
        6
    Donate  
    OP
       Aug 9, 2014
    @ehs2013
    打开网址比如说
    http://www.super-ping.com/ping.php?node=Hong-Kong&ping=youtube.com
    进去只有网站域名一个。。
    lujjjh
        7
    lujjjh  
       Aug 9, 2014
    @Fulminit
    需要指定一下 Referer
    reverland
        8
    reverland  
       Aug 9, 2014
    拿浏览器来……

    比如https://github.com/scrapinghub/splash
    nomaka
        9
    nomaka  
       Aug 13, 2014
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2791 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 11:35 · PVG 19:35 · LAX 04:35 · JFK 07:35
    ♥ Do have faith in what you're doing.