On the problem of extracting cookie from python simulated landing

want to use python to open a web page, log in to the system, extract cookie and other operations, because that system is very painful, so the implementation of bag-grabbing simulation has been given up.

now we have realized the function of extracting cookie after manual login with python+pyqt4 "s qwebview, but batch operation is needed. Can the steps of manual login be realized by program?

ask the gods for help to think of a way:
is there any way for pyqt webview to directly trigger web page events or manipulate web pages? Or use python to simulate the keyboard and mouse operation to complete the account password input process and login submission process?
or are there any more efficient implementation ideas?

Mar.16,2021

consider using selenium, to log in automatically, except that the CAPTCHA requires identification algorithm or manual input, and there is no need to parse cookie, conveniently and quickly

Menu