通过python文件系统2接口通过HTTP协议读取文件
httpfs的Python项目详细描述
你能用它做什么?在
使用Python File System 2,可以执行以下操作:
>>> import fs >>> with fs.open_fs('https://www.google.com') as f: ... print(f.readbytes('index.html')) b'<!doctype ....'
玩得开心!在
为什么
它使moban可以使用http上的任何文件作为 模板或数据文件:
^{pr2}$安装
您可以通过pip安装httpfs:
$ pip install httpfs
或者克隆并安装:
$ git clone https://github.com/moremoban/httpfs.git
$ cd httpfs
$ python setup.py install
更改日志
首次发布
- 真了不起!在
- 项目
标签: