how do i get following sessionkey with BeautifulSoup:
<a href=" https://website.com/login/logout.php?sesskey=Q3bAQgiGA2" class="dropdown-item menu-action" role="menuitem" data-title="logout" aria-labelledby="actionmenuaction-6">
The output should be: Q3bAQgiGA2
I tried following: sesskey = soup.find('a', attrs={'href':'sesskey'}).get('sesskey=')