from bs4 import BeautifulSoup as BS
import requests
cookies = {
# cookies
}
headers = {
# headers
}
response = requests.get('url', cookies=cookies, headers=headers)
with open('result.html', 'w', encoding='utf-8') as file:
file.write(response.text)
soup = BS(response.content, "html.parser")
result = soup.find_all("script", {"nonce": "Az7gchipqV7qblxMTc6KUQdL"})
print(result)