images
is a list
, you have to access the index of the list and extract the value.
For example:
images = soup.find_all('img', {'class': 'css-1rovmyu e65zztl0'})
print(images[0]["src"])
Or to only get the first tag, use find()
instead of find_all()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…