A
A
alivergg2022-03-15 23:17:54
Python
alivergg, 2022-03-15 23:17:54

How to get data from a request sent via selenium?

I go to the page through selenium. I need to get payload(data) from a specific request.
I did this by converting the request to cURL, after splitting I took the payload. Can you make it more appropriate?

driver.get(market_page)
    for request in driver.requests:
        if str(request.url) == 'https://www.binance.com/bapi/nft/v1/friendly/nft/layer-product-list':
            lCmd = shlex.split(curlify.to_curl(request))
            datad = lCmd[len(lCmd) - 2]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question