Python - Download File Using Requests, Directly to Memory

后端 未结 3 409
孤城傲影
孤城傲影 2020-12-03 05:16

The goal is to download a file from the internet, and create from it a file object, or a file like object without ever having it touch the hard drive. This is just for my kn

3条回答
  •  春和景丽
    2020-12-03 05:44

    Your answer is u.content. The content is in the memory. Unless you write it to a file, it won’t be stored on disk.

提交回复
热议问题