Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Python中查看辅助GET请求?_Python_Python Requests - Fatal编程技术网

在Python中查看辅助GET请求?

在Python中查看辅助GET请求?,python,python-requests,Python,Python Requests,如果向特定URL发出请求会生成多个其他GET请求嵌入视频等,这些请求在开发人员工具的网络选项卡中可见,那么如何定位这些请求并使它们在Python中可见 import requests url = "https://learning.oreilly.com/videos/learn-javascript/9780136752899/9780136752899-LJS1_01_01_02" r = requests.get(url) # then somehow return

如果向特定URL发出请求会生成多个其他GET请求嵌入视频等,这些请求在开发人员工具的网络选项卡中可见,那么如何定位这些请求并使它们在Python中可见

import requests 
url = "https://learning.oreilly.com/videos/learn-javascript/9780136752899/9780136752899-LJS1_01_01_02"
r = requests.get(url)
# then somehow return whatever is visible in the network tab.

我试图在Python中打印这两个GET请求,而不是每次都手动使用开发工具。

如果这些请求是由Javascript触发的:不太可能。您需要一个无头浏览器来评估Javascript。请求与此没有多大关系。您有没有特别推荐的无头浏览器?