如何通过使用python获取chrome网络中的所有网址[关闭]

问题描述 投票:-3回答:1

enter image description here

如何获取chrome网络中的所有请求URL

python-3.x web python-requests
1个回答
0
投票

右键单击 - >复制 - >全部复制为HAR

然后你可以像这样导入它:

import json
obj = json.loads(
'''
<paste here>
'''
)

然后你可以得到urls = [ entry['request']['url'] for entry in obj['log']['entries'] ]

您可能需要在文本编辑器中替换\“with \\”才能进行编译。

© www.soinside.com 2019 - 2024. All rights reserved.