I just ran your code and printed the first
data
entry, which shows:
{'dt': 1654671600, 'temp': 23.04, 'feels_like': 23.04, 'pressure': 1009, 'humidity': 63, 'dew_point': 15.62, 'uvi': 1.46, 'clouds': 93, 'visibility': 10000, 'wind_speed': 1.72, 'wind_deg': 6, 'wind_gust': 2.96, 'weather': [{'id':
804, 'main': 'Clouds', 'description': '厚い雲', 'icon': '04d'}], 'pop': 0.08}
As you can see there is no item titled "rain".