
Python初体验
零基础学习python,搭建环境,基础语法,flask框架等
Missj1218
If you love life,life will love you back.
展开
-
并行发送请求-grequests
# pip install grequests import grequests import time def get_request_list(url, payload): # GET: grequests.get(url) # POST return grequests.post(url, data=payload) def demo(): # API接口 request_url = "http://xxx/interface/" param_.原创 2021-03-15 23:28:51 · 420 阅读 · 0 评论 -
节点遍历查询-jsonpath
# pip install jsonpath import jsonpath # 参数传递json格式数据,支持精准和模糊查找方式 json_data = jsonpath.jsonpath(json_data, '$..' + key)[0] # 参考链接 # https://github.com/json-path/JsonPath # https://blog.youkuaiyun.com/Ka_Ka314/article/details/81014589 # https://blog.youkuaiyun.com/m.原创 2021-03-06 18:47:22 · 940 阅读 · 0 评论