Skip to content

Commit

Permalink
deploy: b383af4
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 12, 2023
0 parents commit 07f02ea
Show file tree
Hide file tree
Showing 23 changed files with 5,576 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
403 changes: 403 additions & 0 deletions core.html

Large diffs are not rendered by default.

486 changes: 486 additions & 0 deletions index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sitemap: https://Elijas.github.io/sec-downloader/sitemap.xml
37 changes: 37 additions & 0 deletions search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"objectID": "core.html",
"href": "core.html",
"title": "core",
"section": "",
"text": "source\n\nDownloadStorage\n\n DownloadStorage (filter_pattern:Optional[str]=None)\n\nInitialize self. See help(type(self)) for accurate signature."
},
{
"objectID": "index.html",
"href": "index.html",
"title": "sec-downloader",
"section": "",
"text": "Useful extensions for sec-edgar-downloader."
},
{
"objectID": "index.html#install",
"href": "index.html#install",
"title": "sec-downloader",
"section": "Install",
"text": "Install\npip install sec_downloader"
},
{
"objectID": "index.html#features",
"href": "index.html#features",
"title": "sec-downloader",
"section": "Features",
"text": "Features\n\nFiles are downloaded to a temporary folder, immediately read into memory, and then deleted.\nUse “glob” pattern to select which files are read to memory."
},
{
"objectID": "index.html#how-to-use",
"href": "index.html#how-to-use",
"title": "sec-downloader",
"section": "How to use",
"text": "How to use\nDownloading multiple documents:\n\nfrom sec_edgar_downloader import Downloader\nfrom sec_downloader import DownloadStorage\n\nstorage = DownloadStorage()\nwith storage as path:\n dl = Downloader(\"MyCompanyName\", \"[email protected]\", path)\n dl.get(\"10-K\", \"GOOG\", limit=2)\n# all files are now deleted and only stored in memory\n\nfor path, content in storage.get_file_contents():\n print(f\"Path: {path}\\nContent [len={len(content)}]: {content[:30]}...\\n\")\n\nPath: sec-edgar-filings/GOOG/10-K/0001652044-22-000019/full-submission.txt\nContent [len=15044932]: <SEC-DOCUMENT>0001652044-22-00...\n\nPath: sec-edgar-filings/GOOG/10-K/0001652044-23-000016/full-submission.txt\nContent [len=15264470]: <SEC-DOCUMENT>0001652044-23-00...\n\n\n\nLet’s demonstrate how to download a single file (latest 10-Q filing details in HTML format) to memory.\n\nONLY_HTML = \"**/*.htm*\"\n\nstorage = DownloadStorage(filter_pattern=ONLY_HTML)\nwith storage as path:\n dl = Downloader(\"MyCompanyName\", \"[email protected]\", path)\n dl.get(\"10-Q\", \"AAPL\", limit=1, download_details=True)\n# all files are now deleted and only stored in memory\n\ncontent = storage.get_file_contents()[0].content\nprint(f\"{content[:50]}...\")\n\n<?xml version=\"1.0\" ?><!--XBRL Document Created wi..."
}
]
2,018 changes: 2,018 additions & 0 deletions site_libs/bootstrap/bootstrap-icons.css

Large diffs are not rendered by default.

Binary file added site_libs/bootstrap/bootstrap-icons.woff
Binary file not shown.
10 changes: 10 additions & 0 deletions site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions site_libs/bootstrap/bootstrap.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions site_libs/clipboard/clipboard.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions site_libs/quarto-html/anchor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions site_libs/quarto-html/popper.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 07f02ea

Please sign in to comment.