edgar

Parse SEC EDGAR XML Form Data with child nodes using BeautifulSoup

Parse SEC EDGAR XML Form Data with child nodes using BeautifulSoup Question: I am attempting to scrape individual fund holdings from the SEC’s N-PORT-P/A form using beautiful soup and xml. A typical submission, outlined below and [linked here][1], looks like: <edgarSubmission rel=”nofollow noreferrer”>https://www.sec.gov/Archives/edgar/data/1618627/000114554923004968/primary_doc.xml Asked By: therdawg || Source Answers: Here is the best way, in …

Total answers: 1

Extract 10K filings url for a company using CIK number python

Extract 10K filings url for a company using CIK number python Question: I am working on a project to find the latest 10K filings url for a company using CIK number. Please find the code below: import requests from bs4 import BeautifulSoup # CIK number for Apple is 0001166559 cik_number = "0001166559" url = f"https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK={cik_number}&type=10-K&dateb=&owner=exclude&count=40" …

Total answers: 1