{"repo":"wangluozhe/requests","free":true,"listed":false,"github":"https://github.com/wangluozhe/requests","clone":"git clone https://github.com/wangluozhe/requests.git","description":"用于快速请求HTTP或HTTPS，并支持修改ja3、ja4指纹","language":"Go","stars":575,"topics":["ja3","http2","http","https","golang","go","request","requests","ja4"],"license":"GPL-3.0","category":"dev-tools","readme_excerpt":"requests requests支持以下新特性： 1. 支持http2，默认以http2进行连接，连接失败后会进行退化而进行http1.1连接 2. 支持JA3指纹修改 3. 支持http2+JA3指纹 4. 支持修改TLS指纹 5. 支持修改http2指纹 此模块参考于Python的requests模块 加入微信群聊 如果你想跟更多志同道合的人一起学习，那么加入群聊来吧！(备注：加群) 下载requests库 下载指定版 快速上手 迫不及待了吗？本页内容为如何入门 Requests 提供了很好的指引。其假设你已经安装了 Requests。如果还没有，去安装看看吧。 首先，确认一下： - Requests已安装 - Requests是最新的 让我们从一些简单的示例开始吧。 DEBUG模式 设置后全局可通用，可以把结果打印至stderr中，方便查看url.Request结构体、原始请求、原始响应内容。 更灵活的参数传递 (Flexible Parameter Passing) Request 结构体中的参数（ Params , Headers , Cookies , Data , Files , Body ）现在支持 any 类型。您不再局限于特定的结构体，可以直接传入 map 、 string 或其他常见类型，库会自动进行转换。 支持的类型示例 (Supported Types Examples): Params (Query String): url.Params string (e.g. \"key=value&a=1\") map[string]string map[string][]string map[string]int map[string][]int map[string]float64 map[string][]float64 map[string]interface{} (支持递归解析) Headers: http.Header string (e.g. \"User-Agent: abc\\nAccept: / \") map[string]string map[string][]string map[string]interface{} (值支持 string, int, float64, bool) map[string][]interface{} Cookies: cookiejar.Jar string (e.g. \"name=value; a=1\") map[string]string map[string]int map[string]float64 map[string]interface{} (值支持 string, int, float64, bool) Data (Form Data): url.Values string (e.g. \"key=value&a=1\") map[string]string map[string][]string map[string]int map[string][]int map[string]float64 map[string][]float64 map[string]interface{} (支持递归解析) Files url.Files map[string]string (key为字段名, value为文件路径. 会自动提取文件名，ContentType默认为空) Body: string []byte io.Reader 注意： AllowRedirects 、 Ve","default_branch":null,"files":null,"tree":[],"storefront":"/r/wangluozhe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wangluozhe/requests/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}