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
SimbaPeng
V2EX  ›  Python

使用 selenium webdriver 点击按钮然后下载文件,如何监听文件下载完毕?

  •  
  •   SimbaPeng · 2018-03-07 17:01:32 +08:00 · 6833 次点击
    这是一个创建于 2214 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2018-03-07 17:43:30 +08:00
    lnightk
        1
    lnightk  
       2018-03-07 17:12:28 +08:00 via Android
    selenium 只能监听 html,除非下载成功后网页有变化
    meisky6666
        2
    meisky6666  
       2018-03-07 17:15:52 +08:00
    python 检测目录?
    h4lbhg1G
        3
    h4lbhg1G  
       2018-03-07 17:16:00 +08:00
    谷歌一下有人说的方法是周期性检测下载目录下面<filename>.part 文件是否存在
    kkone
        4
    kkone  
       2018-03-07 17:43:30 +08:00
    不用监听啊,下载是浏览器的事情,你接着做下一步操作就行了,即使下载失败,那也是网络慢,和自动化程序无关的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2792 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 136ms · UTC 11:48 · PVG 19:48 · LAX 04:48 · JFK 07:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.