MCPcopy
hub / github.com/zas023/JdBuyer / response_status

Function response_status

utils.py:115–119  ·  view source on GitHub ↗
(resp)

Source from the content-addressed store, hash-verified

113
114
115def response_status(resp):
116 if resp.status_code != requests.codes.OK:
117 print('Status: %u, Url: %s' % (resp.status_code, resp.url))
118 return False
119 return True
120
121
122def open_image(image_file):

Callers 6

_validate_cookiesMethod · 0.90
_get_QRcodeMethod · 0.90
_get_QRcode_ticketMethod · 0.90
clear_cartMethod · 0.90
get_checkout_pageMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected