BeautifulSoup AttributeError (Python)?
Hi, was könnte diesen Fehler verursachen?
raise AttributeError(
AttributeError: ResultSet object has no attribute 'get'. You're probably treating a list of elements like a single element. Did you call find_all() when you meant to call find()?
Code:
rs=session.get('https://nicht-die-echte-url.com')
soup=BeautifulSoup(rs.text, 'lxml')
session_key=soup.find_all('a').get('href')
print(session_key.split("sesskey=")[1])
programmieren,
Informatik,
Python