Skip to content

Instantly share code, notes, and snippets.

View janlukasschroeder's full-sized avatar
🎯
Focusing

Jan janlukasschroeder

🎯
Focusing
View GitHub Profile
@janlukasschroeder
janlukasschroeder / youtube-summarizer.ipynb
Created May 10, 2023 20:59
YouTube-Summarizer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janlukasschroeder
janlukasschroeder / insider-trading-analysis.ipynb
Created January 17, 2023 11:09
Insider-Trading-Analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janlukasschroeder
janlukasschroeder / summarize-sec-filings-with-openai-gpt3.ipynb
Last active October 10, 2023 12:57
Summarize-SEC-Filings-with-OpenAI-GPT3.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from sec_api import ExecCompApi
execCompApi = ExecCompApi("YOUR_API_KEY")
# Get data by ticker
result_ticker = execCompApi.get_data("TSLA")
# Get data by CIK
result_cik = execCompApi.get_data("1326801")
@janlukasschroeder
janlukasschroeder / 8-k-section-extraction-api.py
Created June 12, 2022 13:31
Extract section 1.01 "Entry into Material Definitive Agreement" from 8-K filings
from sec_api import ExtractorApi
extractorApi = ExtractorApi("YOUR_API_KEY")
filing_url = "https://www.sec.gov/Archives/edgar/data/66600/000149315222016468/form8-k.htm"
# extract section 1.01 "Entry into Material Definitive Agreement" as cleaned text
section_text = extractorApi.get_section(filing_url, "1-1", "text")
@janlukasschroeder
janlukasschroeder / 10-q-section-extraction-api.py
Last active June 12, 2022 13:21
Extract the risk factor section (part 2, item 1a) from 10-Q filings
from sec_api import ExtractorApi
extractorApi = ExtractorApi("YOUR_API_KEY")
# Tesla 10-Q filing
filing_url = "https://www.sec.gov/Archives/edgar/data/1318605/000095017022006034/tsla-20220331.htm"
# extract section 1A "Risk Factors" in part 2 as cleaned text
section_text = extractorApi.get_section(filing_url, "part2item1a", "text")
@janlukasschroeder
janlukasschroeder / 10-k-section-extraction-api-with-txt-url.py
Created June 12, 2022 13:12
Extract section 1A Risk Factors from Tesla's 10-K filing
# txt version of Tesla's 10-K filing
filing_url = "https://www.sec.gov/Archives/edgar/data/1318605/000156459021004599/0001564590-21-004599.txt"
section_text = extractorApi.get_section(filing_url, "1A", "text")
@janlukasschroeder
janlukasschroeder / extracting-financial-statements-from-sec-filings.ipynb
Last active March 14, 2024 14:07
extracting-financial-statements-from-sec-filings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[
{
"name": "Accenture plc",
"ticker": "ACN",
"cik": "1467373",
"cusip": "G1151C101 G1150G111",
"exchange": "NYSE",
"isDelisted": false,
"category": "Domestic Common Stock",
"sector": "Technology",
[
{
"name": "Applied Optoelectronics Inc",
"ticker": "AAOI",
"cik": "1158114",
"cusip": "03823U102",
"exchange": "NASDAQ",
"isDelisted": false,
"category": "Domestic Common Stock",
"sector": "Technology",