爬取100多个城市的历史天气
import pandas as pdimport numpy as npimport reimport osimport json#import js2pyimport requestsfrom bs4 import BeautifulSoupfrom urllib.parse import urlencodeimport time #用于时间的停顿import random 接着取出想要爬取的城市名file = pd.read_csv(r'C:\Users\信息明细表.cs