Compare commits
2 Commits
df87cb8dd3
...
3339925f6a
Author | SHA1 | Date | |
---|---|---|---|
|
3339925f6a | ||
|
128156a82c |
@ -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():
|
||||||
|
if city == "重庆":
|
||||||
for province in provinces:
|
for province in provinces:
|
||||||
for area_id in province.values():
|
for area_id in province.values():
|
||||||
if area_id == "101040100":
|
|
||||||
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)
|
||||||
|
19313
weather_data.csv
19313
weather_data.csv
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user