Automating js files to encrypt a value with python and requests-html

Page B(2nd page) request depending on Page (1st page) click which trigger an event in another js files to encrypt a value. How to automate this with Python and requests/requests-html?

E.g. the content is not existed elsewhere or cookies and it was generated by a js when people click on a button. And it will pass as request when opening the next page visiting.

Request

I’m implementing an API call to a website and Selenium will not be an option.