Pyphantomjs makes python crash

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.

你可能感兴趣的:(python)