Hello all,

I used to be engaged on some python coding and sort of getting knowledge from NSE nice for a number of days. However out of the blue NSE Web site throws 503 error and I get entry denied now even from the browser and ofcourse blocked in Python as nicely. Is there a method that we will resolve this difficulty?

You simply have to cross the user-agent header and it ought to work. Some web sites take a look at the header to test 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)

$ 94,065.00

Ethereum (ETH)

$ 3,335.19

BNB (BNB)

$ 704.37

Solana (SOL)

$ 190.57
Exit mobile version