phost.py 爬虫

---------------------------- install --------------------------------------

1. 下载pyqt http://www.riverbankcomputing.co.uk/software/pyqt/download

2.  pip install Flask

     pip install paste3. pip install Ghost.py

4. 测试 from ghost import Ghost

--------------------------- spider --------------------------------------------

from ghost import Ghost
ghost = Ghost(wait_timeout=999)#不然就报错了
page, resources = ghost.open('http://www.ustc.edu.cn')

 



posted @ 2015-04-03 23:03  程序员阿力  阅读(416)  评论(0编辑  收藏  举报