-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
import requests
url = 'https://www.cboe.com/tradable_products/vix/quote/'
headers = {
'accept': '*/*',
'accept-language': 'en-US,en;q=0.9,ru;q=0.8',
'cache-control': 'no-cache',
'cookie': 'CboePrivacyPolicy_20211104=1',
'pragma': 'no-cache',
'priority': 'u=1, i',
'referer': 'https://www.cboe.com/tradable_products/vix/',
'sec-ch-ua': '"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36',
'x-requested-with': 'XMLHttpRequest',
}
response = requests.get(url, headers=headers)
data = response.json()
vix_value = data['data']['quote']
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels