Merge remote-tracking branch 'origin/main'

This commit is contained in:
sobear 2024-05-31 14:54:55 +08:00
commit f45daea457
2 changed files with 19316 additions and 3 deletions

View File

@ -101,8 +101,8 @@ if __name__ == "__main__":
with ThreadPoolExecutor(max_workers=10) as executor: # 使用最多 10 个线程 with ThreadPoolExecutor(max_workers=10) as executor: # 使用最多 10 个线程
for city, provinces in cities_dict.items(): for city, provinces in cities_dict.items():
for province in provinces: if city == "重庆":
for area_id in province.values(): for province in provinces:
if area_id == "101040100": for area_id in province.values():
executor.submit(fetch_weather_data_for_city, root_url, city, list(province.keys())[0], area_id, executor.submit(fetch_weather_data_for_city, root_url, city, list(province.keys())[0], area_id,
all_dates_str) all_dates_str)

File diff suppressed because it is too large Load Diff