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

python 登陆网页并自动输入一些内容

  •  
  •   luyg · Mar 17, 2016 · 8540 views
    This topic created in 3736 days ago, the information mentioned may be changed or developed.

    各位大神,近期为了简化工作想把一些比较频繁的操作看看能否自动话实现,要操作的设备没有命令行界面,只有一个 web (还需要加载指定的 java ),请各位大神帮忙看看有没有办法能实现自动登陆,然后在指定位置输入一些内容的 python 库。

    6 replies    2016-03-17 12:00:32 +08:00
    loading
        1
    loading  
       Mar 17, 2016 via Android
    wq2016
        2
    wq2016  
       Mar 17, 2016
    selenium 是你的选择
    oglop
        3
    oglop  
       Mar 17, 2016 via Android
    同上 你要看着他动就 selenium 不用看就 phantomjs
    ericls
        4
    ericls  
       Mar 17, 2016
    加载 java 不知道怎么弄

    但是加载 javascript 可以用 selenium

    另外 selenium 也可以 headless
    JhOOOn
        5
    JhOOOn  
       Mar 17, 2016
    只要傻瓜输入,操作的 selenium 都能做, 地址: http://selenium-python.readthedocs.org/getting-started.html ,很简单的,如果服务器没有 gui ,可以连接个远程带 gui 的服务器,将 selenium-server 放到那里。
    如果不需要界面显示,像楼上说的就用 phantomjs
    luyg
        6
    luyg  
    OP
       Mar 17, 2016
    哇,统一拜谢大家,我去研究一下看看。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:48 · PVG 06:48 · LAX 15:48 · JFK 18:48
    ♥ Do have faith in what you're doing.