dgunning / edgartools

Python library for working with SEC Edgar
MIT License
324 stars 70 forks source link

Feature: get the filing URLs from a given Filing #47

Closed virattt closed 2 months ago

virattt commented 2 months ago

Hi!

More of a feature request, although this may already be supported; I may just be missing it.

If I have a Filing, it would be great to be able to get the URL links of the filing (screenshot) programmatically, as well:

Screenshot 2024-05-01 at 5 39 11 PM

How can I programmatically get the URL https://sec.gov/Archives/edgar/data/789019/0000950170-23-035122-index.html from the filing?

Here is the code I used to get the filing:

company = Company("MSFT")
company.get_filings(accession_number="0000950170-23-035122")[0]
virattt commented 2 months ago

Nvm - just figured it out:

company.get_filings(accession_number="0000950170-23-035122")[0].url