I'm new to python requests and beautiful soup, I was trying to create a script to automatically login and logout, but I need the "_wpnonce" value to send a valid post request. I am wondering if there is a way to extract the "_wpnonce" value from this link using beautiful soup, any help is appreciated.
<a href="https://www.example.com/wp-login.php?action=logout&_wpnonce=fc789123fe&redirect_to=%2Fuser%2Flogout">Sign Out</a>
The extracted value would be "fc789123fe"