Download json.gz file says "File Not found"

I am using following code to download the file and read it but code results in “File Not Found” exception. However I am able to download the file using given link with clicking on it. Can you please help?

@Pradeep_Jaiswar

import gzip
import json

def get_json_from_gzipped_file(file_path):
try:
with gzip.open(file_path, ‘rb’) as f:
json_bytes = f.read()
json_string = json_bytes.decode(‘utf-8’)
data = json.loads(json_string)
return data
except FileNotFoundError:
print(f"Error: File not found: {file_path}“)
return None
except gzip.BadGzipFile:
print(f"Error: Invalid gzip file: {file_path}”)
return None
except json.JSONDecodeError:
print(f"Error: Invalid JSON format in: {file_path}“)
return None
except Exception as e:
print(f"An unexpected error occurred: {e}”)
return None

url = “https://assets.upstox.com/market-quote/instruments/exchange/NSE.json.gz

json_content = get_json_from_gzipped_file(url)

if json_content:
# Process the json_content
print(json_content)

Actually I came here to report about missing equity instruments

I have fixed the issue myself. So please delete this query