MCPcopy Index your code
hub / github.com/SpiderClub/weibospider / decode

Method decode

utils/code_verification.py:73–84  ·  view source on GitHub ↗
(self, file_name, code_type, time_out)

Source from the content-addressed store, hash-verified

71 return response and response['text'] or ''
72
73 def decode(self, file_name, code_type, time_out):
74 cid = self.upload(file_name, code_type, time_out)
75 if cid > 0:
76 for i in range(0, time_out):
77 result = self.result(cid)
78 if result != '':
79 return cid, result
80 else:
81 time.sleep(1)
82 return -3003, ''
83 else:
84 return cid, ''
85
86 def post_url(self, url, fields, files=[]):
87 for key in files:

Callers 15

code_verificateFunction · 0.95
get_enterprise_detailFunction · 0.80
get_pageFunction · 0.80
get_repost_listFunction · 0.80
_search_page_parseFunction · 0.80
get_search_infoFunction · 0.80
get_detailFunction · 0.80
push_in_queueMethod · 0.80
check_cookies_timeoutMethod · 0.80
fetch_uid_by_nameMethod · 0.80

Calls 2

uploadMethod · 0.95
resultMethod · 0.95

Tested by

no test coverage detected