Python 的 HTTP 客户端库 Requests

码农软件 · 软件分类 · 网络工具包 · 2019-02-28 19:27:56

软件介绍

Requests 是一个 Python 的 HTTP 客户端库。

支持的 HTTP 特性:

  • Keep-Alive & Connection Pooling

  • International Domains and URLs

  • Sessions with Cookie Persistence

  • Browser-style SSL Verification

  • Automatic Content Decoding

  • Basic/Digest Authentication

  • Elegant Key/Value Cookies

  • Automatic Decompression

  • Unicode Response Bodies

  • HTTP(S) Proxy Support

  • Multipart File Uploads

  • Streaming Downloads

  • Connection Timeouts

  • Chunked Requests

  • .netrc Support

  • Thread-safety

示例代码:

>>> r = requests.get('https://git.oschina.net', auth=('user', 'pass'))
>>> r.status_code
204
>>> r.headers['content-type']
'application/json'
>>> r.text
...

本文地址:https://codercto.com/soft/d/342.html

Algorithms Illuminated (Part 2)

Algorithms Illuminated (Part 2)

Tim Roughgarden / Soundlikeyourself Publishing, LLC / 2018-8-5 / USD 17.99

Algorithms are the heart and soul of computer science. Their applications range from network routing and computational genomics to public-key cryptography and machine learning. Studying algorithms can......一起来看看 《Algorithms Illuminated (Part 2)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具