arequest是一个简单的异步HTTP库,具有更灵活的特性。
arequest的Python项目详细描述
请求
arequest是一个简单的异步HTTP库,具有更灵活的特性。
安装
pip3 install arequest
注意:需要python3.8或更高版本。
使用
importasyncioimportarequestasyncdefmain():r=awaitarequest.get("https://github.com")print(r.headers)print(r.status_code)print(r.url)print(r.encoding)print(r.text)# print(r.content)# bytes response contentasyncio.run(main())
或者使用post/head
方法。在
参数
^{pr2}$- 项目
标签: