mcdallas / wallstreet

Real time stock and option data.
MIT License
1.24k stars 197 forks source link

send headers on every session.get request to add a user agent… #31

Closed BillJr99 closed 2 years ago

BillJr99 commented 2 years ago

… to the header per https://stackoverflow.com/questions/10606133/sending-user-agent-using-requests-library-in-python.

Yahoo finance, and possibly others, appear to be returning HTTP 404 on requests that do not include a user agent header.