skip to Main Content

Why can't get json as the right response?

Open the url https://hnx.vn/en-gb/cophieu-etfs/chung-khoan-ny.html with browser,then click page 2 ,you can see that the content in response is a json. I build a request with urllib to get the json: import urllib.request import ssl,json base_url = "https://hnx.vn/ModuleIssuer/List/ListSearch_Datas" proxy_handler = urllib.request.ProxyHandler({'https':…

VIEW QUESTION

How can I solve a "500 Internal Server Error" when importing modules in __init__.py? – Html

I use Flask for the first time. The following __init__.py is working fine : Python v3.10.6 #!/usr/bin/env python3 from flask import Flask, render_template, request app = Flask(__name__) @app.route('/testurl') def testurl(): return render_template('index.html') @app.route('/from_client', methods=['POST']) def from_client(): request_data = request.get_json() return…

VIEW QUESTION
Back To Top
Search