報錯:
NotImplementedError: Cannot execute CSS selectors because the soupsieve package is not installed.
是這個函數
def fetch_city_weather_url_list(url):
? ? city_url_list = []
? ? resp = requests.get(url)
? ? resp.encoding = 'utf-8'
? ? bs = BeautifulSoup(resp.text,'lxml')
? ? # a_s = bs.find('a')
? ? a_s = bs.select('div.conMidtab a')
因為是自學,有些知識不系統(tǒng),在網上搜索很久沒找到答案,后來回朋友才知道