V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-03-17 06:46:02 +08:00 · 7610 次点击
    这是一个创建于 2954 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    6 条回复    2016-03-17 12:00:32 +08:00
    loading
        1
    loading  
       2016-03-17 06:54:52 +08:00 via Android
    wq2016
        2
    wq2016  
       2016-03-17 08:00:40 +08:00
    selenium 是你的选择
    oglop
        3
    oglop  
       2016-03-17 08:43:58 +08:00 via Android
    同上 你要看着他动就 selenium 不用看就 phantomjs
    ericls
        4
    ericls  
       2016-03-17 09:35:38 +08:00
    加载 java 不知道怎么弄

    但是加载 javascript 可以用 selenium

    另外 selenium 也可以 headless
    JhOOOn
        5
    JhOOOn  
       2016-03-17 11:32:27 +08:00
    只要傻瓜输入,操作的 selenium 都能做, 地址: http://selenium-python.readthedocs.org/getting-started.html ,很简单的,如果服务器没有 gui ,可以连接个远程带 gui 的服务器,将 selenium-server 放到那里。
    如果不需要界面显示,像楼上说的就用 phantomjs
    luyg
        6
    luyg  
    OP
       2016-03-17 12:00:32 +08:00
    哇,统一拜谢大家,我去研究一下看看。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5385 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 142ms · UTC 08:24 · PVG 16:24 · LAX 01:24 · JFK 04:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.