推荐学习书目
› 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 · 6314 views
    This topic created in 4470 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
    pimin
    Aug 9, 2014 via iPhone❤️1
    1
    http.client
    ehs2013
    ehs2013
    Aug 9, 2014
    3
    节点列表见 HTML 261 行
    Donate
    Donate
    OP
    Aug 9, 2014 via Android
    4
    @ehs2013 请问这是怎么找到的。。下次如遇相同情况应该如何处理?
    pimin
    pimin
    Aug 9, 2014 via iPhone❤️1
    5
    @Fulminit
    抓包查看浏览器正常访问过程判断就好了
    Donate
    Donate
    OP
    Aug 9, 2014
    6
    @ehs2013
    打开网址比如说
    http://www.super-ping.com/ping.php?node=Hong-Kong&ping=youtube.com
    进去只有网站域名一个。。
    lujjjh
    lujjjh
    Aug 9, 2014
    7
    @Fulminit
    需要指定一下 Referer
    reverland
    reverland
    Aug 9, 2014
    8
    拿浏览器来……

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