Closed jitendravarma closed 6 months ago
Good suggestion
This library is in a stale state. Need to find a different one.
or I will add some random headers
Added working fake headers logic to the get_headers function.
Link #50
Some warning are coming in py 3.11 need to fix later
Right now I see that we have fixed headers for making api requests to NSE. Problem with this is, if many users are requesting the NSE api, then NSE blocks the given headers. So no new reqports file will be downloaded for same headers.
Solution that I like to propose it, to use python header faker library to mock headers and then shoot request. That way all different users will have their own set of headers and wont get blocked.
Library: https://pypi.org/project/fake-headers/