Answer the question
In order to leave comments, you need to log in
How to catch GET request from browser to server in selenium python?
I have two such requests: publicKey?timestamp=1636010266715, publicKey?timestamp=1636010265363
I don't know what the numbers will be, so I need to get a request that is higher and whose name contains publicKey.
This is what the response to the request looks like: publicKey: "6*drVtEU*******QauUXqN*****QAQIe"
How do I get the publickKey value?
Answer the question
In order to leave comments, you need to log in
It's just a timestamp (which the name of the parameter hints at), so it doesn't matter what they are there.
Under the asterisks is clearly a Google key, I will assume that it is from captcha. The sitekey won't change every day, so you can just take it as a constant and not parse it every time.
If you want to get the key every time, then it would be better to just send a request to the same endpoint via requests. Or create and send XHR via JS and execute_script(). If you want to see the request log - selenium-wire
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question