import browsercookie import requests import re firefox_cookiejar = browsercookie.firefox() # res = requests.get("https://img-home.csdnimg.cn/data_json/jsconfig/menu_path.json", cookies=firefox_cookiejar) # print(res.text)