Need a script (can include open-source tools only) that takes a onion link and creates a login. Every website can (and does) have different login forms, some on the main page, some as popups. For this project if there is a CAPTCHA the script can return a failed message with "captcha needed". Additional information can also be returned and will be stored.
There has to also be an additional script where the onion link is sent with the stored login info (and any additional information) and the script must auto login.
With the exception of the supporting open-source tools, the scripts must be in python.