4

enter image description here

In Chrome inspector, there is the functionality to get the cURL of a media file. Is it possible to automate the same operation in Selenium by using python? Thank you!

Hang Chen
  • 549
  • 1
  • 7
  • 18

1 Answers1

0

find the URL of the image by finding the image element with find_element* and then get the "href" attribute with get_attribute

cookies can be retrieved via driver.get_cookies()

I think the headers you would have to construct yourself

and at the end you would have to put it all together in a cURL request

INDIVIDUAL-IT
  • 426
  • 3
  • 11