I am trying to grab a form action using beautiful soup

I have tried print(soup.find('form').find_all('action')) but that doesnt work. Wondering if there is an easy way. ( I am trying to get the rest of the string after ?dwcont= )
I am trying to grab a form action using beautiful soup

I have tried print(soup.find('form').find_all('action')) but that doesnt work. Wondering if there is an easy way. ( I am trying to get the rest of the string after ?dwcont= )