tradingview_screener.constants
1from __future__ import annotations 2 3 4URL = 'https://scanner.tradingview.com/{market}/scan' 5HEADERS = { 6 'authority': 'scanner.tradingview.com', 7 'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"', 8 'accept': 'text/plain, */*; q=0.01', 9 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 10 'sec-ch-ua-mobile': '?0', 11 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)' 12 'Chrome/98.0.4758.102 Safari/537.36', 13 'sec-ch-ua-platform': '"Windows"', 14 'origin': 'https://www.tradingview.com', 15 'sec-fetch-site': 'same-site', 16 'sec-fetch-mode': 'cors', 17 'sec-fetch-dest': 'empty', 18 'referer': 'https://www.tradingview.com/', 19 'accept-language': 'en-US,en;q=0.9,it;q=0.8', 20}
URL =
'https://scanner.tradingview.com/{market}/scan'
HEADERS =
{'authority': 'scanner.tradingview.com', 'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="98", "Google Chrome";v="98"', 'accept': 'text/plain, */*; q=0.01', 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'sec-ch-ua-mobile': '?0', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)Chrome/98.0.4758.102 Safari/537.36', 'sec-ch-ua-platform': '"Windows"', 'origin': 'https://www.tradingview.com', 'sec-fetch-site': 'same-site', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'referer': 'https://www.tradingview.com/', 'accept-language': 'en-US,en;q=0.9,it;q=0.8'}