Skip to content

Commit

Permalink
deploy: 72397fb
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 11, 2023
0 parents commit 43a2a4a
Show file tree
Hide file tree
Showing 22 changed files with 5,189 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
527 changes: 527 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-api-io/sitemap.xml
16 changes: 16 additions & 0 deletions search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"objectID": "index.html#install-and-setup",
"href": "index.html#install-and-setup",
"title": "sec-api-io",
"section": "Install and Setup",
"text": "Install and Setup\nRun in terminal:\npip install sec_api_io"
},
{
"objectID": "index.html#how-to-use",
"href": "index.html#how-to-use",
"title": "sec-api-io",
"section": "How to use",
"text": "How to use\n\n(Optional) Set API key with .env file\nIt’s highly recommended to set your API key in a .env file to avoid setting it in the code.\n\nMake a copy of the .env.template file in the root directory of the project.\nRename the copied file to .env.\nOpen the .env file and locate the SECAPIO_API_KEY variable.\nFill in the value for the SECAPIO_API_KEY variable.\n\nYou can obtain a free key from sec-api.io.\nNote: The first 100 requests are free.\n\nSave the .env file next to your notebook or script.\n\n\nImportant Note: Depending on your geographical location, you might need to use a VPN set to a United States location to access sec-api.io API.\n\nLet’s load the API key from .env file into the environment variable SECAPIO_API_KEY\n\n!pip install -q python-dotenv\n\n\nimport os \nfrom dotenv import load_dotenv\n\nif 'SECAPIO_API_KEY' not in os.environ:\n assert load_dotenv()\n\n\n\nGet latest 10-Q report by ticker\n\nfrom sec_api_io.secapio_data_retriever import SecapioDataRetriever\n\nretriever = SecapioDataRetriever()\n# retriever = SecapioDataRetriever(api_key=...) # If you don't want to use .env file\n\nmetadata = retriever.retrieve_report_metadata('10-Q', latest_from_ticker='AAPL')\nurl = metadata[\"linkToFilingDetails\"]\n\nassert url.startswith('https://www.sec.gov/Archives/edgar/data/')\nurl\n\n'https://www.sec.gov/Archives/edgar/data/320193/000032019323000077/aapl-20230701.htm'\n\n\n\n\nDownload 10-Q HTML split into sections\n\nhtml = retriever.get_report_html('10-Q', url)\nassert html\n\n\nfor line in html.splitlines():\n print(line[:50] + '...')\n\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'...\n<document-root-section comment=\"This tag was added...\n<span style=\"color:#000000;font-family:'Helvetica'..."
}
]
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 43a2a4a

Please sign in to comment.