I am working on a scraping project where I am trying to scrape NSE announcements page - https://www.nseindia.com/companies-listing/corporate-filings-announcements.
Now the table is static but the JSON content get loads dynamically.
I am able to hit the API endpoint of the website but after few times it says - “Resource not found”.
I am not able to find workaround for it. How can I extract the news from announcements page?
I tried using the headers in the code but even that is not helping.
To load the Json with the data first get the cookies from the main page:
Prints: