Question: I am making a python flask trivia website and I am getting the trivia from a trivia api: https://opentdb.com/api_config.php. However, there are some weird symbols

I am making a python flask trivia website and I am getting the trivia from a trivia api: https://opentdb.com/api_config.php. However, there are some weird symbols in the questions like &qout; How do I get rid of this formatting. My site: http://elizabethsite1.pythonanywhere.com/

I am making a python flask trivia website and I am getting

http://elizabethsite1.pythonanywhere.com/

Python Flask:

# Connects to API which holds the questions for this trivia game response = urllib.request.urlopen("https://opentdb.com/api.php?amount=50&category=9&difficulty=easy&type=multiple").read() json_obj = str(response, 'utf-8') data = json.loads(json_obj)

The New York Times slogan is, All the News That’s Fit to… Look Digest Read ? Print submit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!