推荐学习书目
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
mgna17
V2EX  ›  Python

新手入门中,请教各位一个关于 Ghost.py 的问题

  •  2
     
  •   mgna17 · Dec 21, 2015 · 3061 views
    This topic created in 3826 days ago, the information mentioned may be changed or developed.
    Ghost.py 有没有模拟鼠标滑轮滚动或者网页向下翻页的功能呢?如何用呢?
    今天拿百度文库做实验,发现其中的文档是会在网页下翻的时候动态加载的,于是产生如上的想法。
    望各位前辈不吝赐教。
    7 replies    2015-12-21 19:14:19 +08:00
    fasling
        1
    fasling  
       Dec 21, 2015
    pywin32
    自己加模块呗
    mgna17
        2
    mgna17  
    OP
       Dec 21, 2015
    @fasling 为什么是加 pywin32
    fasling
        3
    fasling  
       Dec 21, 2015
    哦,如果是在 windows 上,模拟鼠标键盘消息就用 pywin32.
    如果是别的系统,我就不知道了.
    mgna17
        4
    mgna17  
    OP
       Dec 21, 2015
    @fasling 呃,我指的是在 Ghost.py 这个库里面有没有这个功能。您指的是 Ghost.py 可以调用其它库的功能来模拟鼠标滚动么?
    fasling
        5
    fasling  
       Dec 21, 2015
    @mgna17 应该是可以的.
    zingl
        6
    zingl  
       Dec 21, 2015
    ghost.py 文档不足,可以看 issue 里的例子,有 scroll
    mgna17
        7
    mgna17  
    OP
       Dec 21, 2015
    @zingl 谢谢指点,这对我很有帮助
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2929 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:56 · PVG 18:56 · LAX 03:56 · JFK 06:56
    ♥ Do have faith in what you're doing.