Link : https://public.fyers.in/sym_details/NSE_FO.csv
The website works perfectly fine if opened in browser. However getting error while accessing via python api code.
Code Snippet :
response = requests.get('http://public.fyers.in/sym_details/NSE_FO.csv')
response_text = response.text
response_text = response_text.split('\n')
response_text
Error :
The initial connection between Cloudflare's network and the origin web server timed out. As a result, the web page can not be displayed.
Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn\'t finish. The most likely cause is that something on your server is hogging resources.