bellingcat / EDGAR

Tool for the retrieval of corporate and financial data from the SEC
https://colab.research.google.com/github/bellingcat/EDGAR/blob/main/notebook/Bellingcat_EDGAR_Tool.ipynb
GNU General Public License v3.0
128 stars 15 forks source link

Use EDGAR API Endpoint #21

Closed GalenReich closed 6 months ago

GalenReich commented 6 months ago

Closes #20

Turns out there is an API endpoint that returns JSON.

This PR moves the codebase from using Selenium to using requests to hit the API at https://efts.sec.gov/LATEST/search-index

It deprecates the browser and headless arguments, but doesn't fail with them (so shouldn't require a major version change)