def api_private_blockpage_count():
probe_cc = request.args.get('probe_cc')
if probe_cc is None:
raise Exception('err')
url = urljoin(current_app.config['CENTRIFUGATION_BASE_URL'],
'blockpage-count-%s.json' % probe_cc)
resp_text = json.dumps({'results': []})
resp = requests.get(url)
if resp.status_code != 404:
resp_text = resp.text
return current_app.response_class(
resp_text,
mimetype=current_app.config['JSONIFY_MIMETYPE']
)
评论列表
文章目录