首页 > 其他 > 详细

requests.get()解析

时间:2019-03-12 18:05:40      阅读:577      评论:0      收藏:0      [点我收藏+]
1、requests.get(url, params=None, headers=None, cookies=None, auth=None, timeout=None)
Sends a GET request. Returns Response object.
Parameters:
  • url – URL for the new Request object.
  • params – (optional) Dictionary of GET Parameters to send with the Request.
  • headers – (optional) Dictionary of HTTP Headers to send with the Request.
  • cookies – (optional) CookieJar object to send with the Request.
  • auth – (optional) AuthObject to enable Basic HTTP Auth.
  • timeout – (optional) Float describing the timeout of the request.
requests.get(url,params = None,headers = None,cookies = None,auth = None,timeout =无)
发送GET请求。 返回Response对象。
参数:
  • url - 新的Request对象的URL。
  • params - (可选)使用请求发送的GET参数字典。
  • 头文件 - (可选)使用请求发送的HTTP头文件字典。
  • Cookie - (可选)使用请求发送的CookieJar对象。
  • auth - (可选)AuthObject启用基本HTTP身份验证。
  • 超时 - (可选)描述请求超时的浮点数。
 

requests.get()解析

原文:https://www.cnblogs.com/chenri/p/10518102.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!