2
I am using freegeoip to know my location and use it in my program, but when I make a call using:
r = requests.get(location_url, headers={"content-type":"application/json;charset=UTF-8"})
The return stays like this:
{
ip: "0.0.0.0",
country_code: "BR",
country_name: "Brazil",
region_code: "SP",
region_name: "Sao Paulo",
city: "São Paulo",
zip_code: "",
time_zone: "America/Sao_Paulo",
latitude: -20.1323,
longitude: -50.6417,
metro_code: 0
}
When I read using r.text
, i need the accents in the words. How can I do this?
Thank you so much, this way it worked. I was already hours trying to give Code in the text when I could give straight to content
– Alraune