fbpx
维基百科

Requests

Requests是一个Python HTTP,在Apache License 2.0 许可证下发行。这个项目的目标是使HTTP请求更简单,更人性化。Requests是没有默认包含在Python内的最流行的Python库之一[3],因此有人建议将其默认随Python一起发布[4]

Requests
原作者Kenneth Reitz
開發者Kenneth Reitz, Cory Benfield, Ian Stapleton Cordasco, Nate Prewitt
首次发布2011年2月14日 (2011-02-14)
目前版本
  • 2.28.2 (2023年1月12日)[1]
源代码库
  • github.com/psf/requests
编程语言Python
操作系统跨平台
许可协议Apache许可证2.0
网站requests.readthedocs.io

示例代码

>>> import requests >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text '{"authenticated": true, ...' >>> r.json() {'authenticated': True, ...} 

引用

  1. ^ Release 2.28.2. 2023年1月12日 [2023年1月17日]. 
  2. ^ . [2021-03-12]. (原始内容存档于2021-03-07). 
  3. ^ . [2021-03-13]. (原始内容存档于2021-05-28). The Requests package is recommended for a higher-level HTTP client interface. 
  4. ^ Beazly, David. (PDF). login. April 2012, 37 (2) [16 May 2020]. (原始内容 (PDF)存档于2017-08-24). 

外部链接

  • 官方网站  
  • GitHub上的requests頁面

requests, 是一个python, http库, 在apache, license, 许可证下发行, 这个项目的目标是使http请求更简单, 更人性化, 是没有默认包含在python内的最流行的python库之一, 因此有人建议将其默认随python一起发布, 原作者kenneth, reitz開發者kenneth, reitz, cory, benfield, stapleton, cordasco, nate, prewitt首次发布2011年2月14日, 2011, 目前版本2, 2023年1月12日,. Requests是一个Python HTTP库 在Apache License 2 0 许可证下发行 这个项目的目标是使HTTP请求更简单 更人性化 Requests是没有默认包含在Python内的最流行的Python库之一 3 因此有人建议将其默认随Python一起发布 4 Requests原作者Kenneth Reitz開發者Kenneth Reitz Cory Benfield Ian Stapleton Cordasco Nate Prewitt首次发布2011年2月14日 2011 02 14 目前版本2 28 2 2023年1月12日 1 源代码库github wbr com wbr psf wbr requests编程语言Python操作系统跨平台许可协议Apache许可证2 0网站requests wbr readthedocs wbr io示例代码 编辑 gt gt gt import requests gt gt gt r requests get https httpbin org basic auth user pass auth user pass gt gt gt r status code 200 gt gt gt r headers content type application json charset utf8 gt gt gt r encoding utf 8 gt gt gt r text authenticated true gt gt gt r json authenticated True 引用 编辑 Release 2 28 2 2023年1月12日 2023年1月17日 Community Updates 2021 03 12 原始内容存档于2021 03 07 urllib request Extensible library for opening URL 2021 03 13 原始内容存档于2021 05 28 The Requests package is recommended for a higher level HTTP client interface Beazly David R is for replacement PDF login April 2012 37 2 16 May 2020 原始内容 PDF 存档于2017 08 24 外部链接 编辑官方网站 GitHub上的requests頁面 这是一篇與软件相關的小作品 你可以通过编辑或修订扩充其内容 查论编 取自 https zh wikipedia org w index php title Requests amp oldid 71670559, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。