MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / post_request

Method post_request

Netease/Netease.py:79–91  ·  view source on GitHub ↗

Post请求 :return: 字典

(self, url, params)

Source from the content-addressed store, hash-verified

77 self.ep = Encrypyed()
78
79 def post_request(self, url, params):
80 """
81 Post请求
82 :return: 字典
83 """
84
85 data = self.ep.encrypted_request(params)
86 resp = self.session.post(url, data=data, timeout=self.timeout)
87 result = resp.json()
88 if result['code'] != 200:
89 click.echo('post_request error')
90 else:
91 return result
92
93 def search(self, search_content, search_type, limit=9):
94 """

Callers 2

searchMethod · 0.95
get_song_urlMethod · 0.95

Calls 1

encrypted_requestMethod · 0.80

Tested by

no test coverage detected