The html input page has nothing to do with the requests. It's more complicated!
You need to capture the traffic of the specific website and try re-do it everything through web requests. You need to login, parse various values & keys, submit them and so on. It's easy, but somehow hard, it depends...