Hello all,

I used to be engaged on some python coding and type of getting information from NSE tremendous for a number of days. However immediately NSE Web site throws 503 error and I get entry denied now even from the browser and ofcourse blocked in Python as effectively. Is there a means that we will resolve this subject?

You simply have to cross the user-agent header and it ought to work. Some web sites have a look at the header to verify if it’s a browser or bot.

import requests

headers = {
‘user-agent’: ‘Mozilla/5.0’
}

response = requests.get(WHATEVER_NSE_URL, headers=headers)

bujji:

I get entry denied now even from the browser

Your IP should have been blocked for fetching too many pages

Source link

Leave A Reply

Company

Bitcoin (BTC)

$ 93,685.00

Ethereum (ETH)

$ 3,335.85

BNB (BNB)

$ 708.48

Solana (SOL)

$ 189.73
Exit mobile version