Skip to content

reverse_geocode of city / country : China #316

@InvestigUser

Description

@InvestigUser

Hi.
I have script who reverse_geocode with twikit for my app X-Monitoring.
All is ok for all country and city.

But not for China !

Here is an exemple for Beijing
City : Beijing
Coordonnées : (39.9057136, 116.3912972)

For this try:

client.reverse_geocode(lat=lat, long=lon, max_results=10)

File " .venv\Lib\site-packages\twikit\client\client.py", line 1460, in reverse_geocode
return _places_from_response(self, response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File " .venv\Lib\site-packages\twikit\geo.py", line 79, in _places_from_response
raise TwitterException(e['message'])
twikit.errors.TwitterException: Internal server error.

All is working for all city around the world, but not for China's cities. Why ?

It's the same for country, with the Twikit "client.search_geo(query=country_name, max_results=5)" request: China not working, but all others are ok.... Internal server error.

Can you explain us why ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions