python有知道ghost.py的大侠进
问题1:
ghost.wait_for_selector('input[id=q]')
ghost.fill('#J_TSearchForm', {'q': query_text})以上的两名话,实现的效果
<input id="q" name="q" type="text" value=query_text>,这个只是修改了页面打开的默认值。我设置了Ghost(display=True)看了一下页面,输入框中没有值,fill不成功。改用set_field_value完全就看不到一点效果
问题2:
ghost.fire_on('#J_TSearchForm', 'submit') 这句话,页面一点反应都没有
ghost.click('.btn-search') 这句话也没效果,传的是class名问题3:如果问题2中的方法实现成功,我怎么去判断我的页面已经刷新成功
PS:我看了以下的网址,介绍算是比较多了,但远不详细,有详细资料的亲们希望给个链接
http://jeanphix.me/Ghost.py/#quick-start
http://www.aichengxu.com/article/Python/10774_15.html
相关推荐
python 爬虫ghost.py
基于python的ghost浏览器渲染模式爬虫工具。python执行js的首选工具,
python的ghost.py
ghost.py — Ghost.py 0.2.1 documentation
Ghost.py:适用于python的基于Webkit的可编写脚本的Web浏览器
幽灵 ghost.py是一个用python编写的Webkit Web客户端: from ghost import Ghost ghost = Ghost () with ghost . start () as session : page , extra_resources = session . open ( "http://jeanphix.me" ) assert page . http_status == 200 and 'jeanphix' in page . content 安装 ghost.py需要 绑定。 运行ghost的最便捷方法是使用官方docker映像。 docker run -i -t jeanphix/ghost.py:2.0.0-dev python3 Python 3.5.2 (default, Nov 17 2016, 17:05:2
jeanphix-Ghost.py-0.1b2-120-g530e051
jeanphix-Ghost.py-0.1b2-120-g530e051
Python库 | medium_to_ghost-0.0.4-py3-none-any.whl
python库,解压后可用。 资源全名:medium_to_ghost-0.0.4-py3-none-any.whl


