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
Bviews
V2EX  ›  Python

求教 python 可以模拟浏览器行为执行js的库

  •  
  •   Bviews · 2013-05-24 23:26:05 +08:00 · 13034 次点击
    这是一个创建于 3961 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前好像见哪位同学发过,可以模拟浏览器的行为的。

    比如表单submit以后要执行什么js也能一起执行的。

    Google了一下,很多同学推荐mechanize 但是这个库好像是不能自动去执行js的?
    6 条回复    1970-01-01 08:00:00 +08:00
    best1a
        1
    best1a  
       2013-05-24 23:26:41 +08:00   ❤️ 1
    Bviews
        2
    Bviews  
    OP
       2013-05-24 23:35:02 +08:00
    @best1a 我去看看~thx。
    ioven
        3
    ioven  
       2013-05-25 19:34:56 +08:00
    JavaScript Headless
    这个性能不错,就是太折腾:http://obmem.info/?p=848
    reusFork
        4
    reusFork  
       2013-05-25 20:33:29 +08:00
    用py调用webkit就行
    SErHo
        5
    SErHo  
       2013-05-25 20:48:34 +08:00   ❤️ 1
    janxin
        6
    janxin  
       2013-05-25 21:39:10 +08:00   ❤️ 1
    只是要实现一些JS执行挺多的,比如pyv8 pyspidermonkey
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2870 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:26 · PVG 19:26 · LAX 04:26 · JFK 07:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.