浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Pyphantomjs makes python crash - Stack Overflow

I'm just trying to open a web page with pyphantomjs, but it makes python crash. I don't know if there is a problem or if I am just using it wrong, as the documentation is one of the crappiest I've seen...

My code:

from pyphantomjs import webpage

if __name__ == '__main__':
    wp = webpage.WebPage()
    wp.open("www.google.com")
    print wp.content()

My crash report.

I'm running python 2.7 on Snow Leopard.

posted on 2012-05-06 14:06  lexus  阅读(234)  评论(0编辑  收藏  举报