Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Chrome 检查器中,有获取媒体文件 cURL 的功能。是否可以使用 python 在 Selenium 中自动执行相同的操作?谢谢!
通过查找图像元素来查找图像的 URL,find_element*然后获取“href”属性get_attribute
find_element*
get_attribute
cookie 可以通过以下方式检索driver.get_cookies()
driver.get_cookies()
我认为您必须自己构建标题
最后你必须把它们放在一个 cURL 请求中