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

获取网络文件的时间信息

  •  
  •   Concise · Dec 9, 2019 · 3392 views
    This topic created in 2486 days ago, the information mentioned may be changed or developed.
    有些时候下载的文件 查看文件属性的时候发现文件创建和修改等时间信息不是创建下载任务或者任务下载完成的时间
    而是几天前甚至几年前的时间 查询得知是因为有的服务器返回的文件信息里同时包含了这个文件在服务器上真实的修改信息 当同时满足两个条件 1.服务器支持返回真实时间信息 2.下载器支持获取真实时间信息 那么就会产生这个效果

    请问这个信息 服务器是以什么形式返回给用户的呢 头文件还是啥的 因为我想爬文件下载地址的同时把文件的修改时间也拿到 这样比较直观
    ysc3839
        1
    ysc3839  
       Dec 9, 2019 via Android   ❤️ 1
    HTTP Last-Modified
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1361 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 16:43 · PVG 00:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.