HTML fetched by Requests of Google App Engine (Python) is garbled. It works on the local terminal (not GAE) ... Searched and came out You can't change the encoding in the Requests manual. You can't try other acquisition methods such as contetns or json, I'm pretty clogged up, so I'll write down how to solve it.
** Is the version of Requests you are using supported by GAE **?
In How to add Google App Engine library, It says to install with pip, but then the latest version will be installed.
However, the latest version does not seem to be supported on GAE I solved it by installing the 2.3 version based on the answer below.
I think you need to be careful not only for Requests but also for libraries that do not specify the version.
Can Python Requests library be used on Google App Engine?
Recommended Posts