ryansmccoy / py-sec-edgar

Python application used to download, parse, and extract structured/unstructured data from filings in the SEC Edgar Database (including 10-K, 10-Q, 13-D, S-1, 8-K, etc.)
Other
101 stars 17 forks source link

Add ability to specify a User-Agent HTTP header to requests #11

Closed tlim01-github closed 2 years ago

tlim01-github commented 2 years ago

The EDGAR site is restricting access unless a User-Agent is added to the HTTP header.

https://www.sec.gov/os/accessing-edgar-data

Possibly add a config parameter in settings.py

ryansmccoy commented 2 years ago

Interesting. If you want to create a pull request and add it to the settings file, go for it!

tlim01-github commented 2 years ago

Ok, let me give it a try.