'Executing JavaScript on a page with urllib

I'm trying to create an automation for a site I need to access daily. I can't install any python libraries at the moment.

I need to set a value into an input. And click on a button on this page.

I already managed to get the page content with urllib. But I can't figure out how to control the page. It feels like if I could execute JavaScript code on the page my problem will be solved. Is there a way to execute JavaScript with urllib? Or any other way to automate a site without external libraries?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source