基本上我想從class =「something」標籤刮href。但我已經遇到了一個錯誤說'NoneType' object is not callable
這裏是我的代碼:BeautifulSoup顯示「'NoneType'對象不可調用」當使用find_all
soup = BeautifulSoup(thr_data) # where thr_data is the response.read()
images = soup.find_all("a", {"class" : "something"})
for link in images:
cr_link = link['href']
和HTML是這樣<a ... href="url" class="something"/>