報(bào)錯:
NotImplementedError: Cannot execute CSS selectors because the soupsieve package is not installed.
是這個(gè)函數(shù)
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')
因?yàn)槭亲詫W(xué)澜搅,有些知識不系統(tǒng)长已,在網(wǎng)上搜索很久沒找到答案瓦糟,后來回朋友才知道