Questions tagged [edgar]

EDGAR is an information system of the U.S. Securities and Exchange Commission holding company data. Questions related to parsing and querying the data and public APIs should be tagged.

EDGAR stays for Electronic Data Gathering, Analysis, and Retrieval. This information system uses several data formats: classic SGML based, XML-based XBRL format for business reporting and many more.

120 questions
0
votes
1 answer

ModuleNotFoundError: No module named 'edgar'

I am trying to install Python Edgar library I used the following code pip install edgar I received the following error Building wheel for python-levenshtein (setup.py): started ERROR: Command errored out with exit status 1: and so on Running…
rsc05
  • 3,626
  • 2
  • 36
  • 57
0
votes
0 answers

Python Edgar package - get CIK number

I am reading S-1 filings from Edgar sec. I get my initial data from Bloomberg. Through the company name I can look for the matching CIK number using the term get_cik_by_company_name(company_name: str). I should be able to get the CIK number which I…
0
votes
1 answer

Why isn't this Beautiful Soup code getting the targeted data?

I am trying to use Beautiful Soup to grab the text in the Properties section of a 10K SEC filing on EDGAR. I can get the Properties section header okay and work my way up the parent nodes but from there the next_sibling method is not identifying the…
cfadr2021
  • 117
  • 5
0
votes
1 answer

Why won't this Beautiful Soup code parse the text I am targeting?

I am trying to select the Properties section header in this 10K filing; and once selected from there I intend to to grab the text in that section (i.e. all text between the Properties and Legal Proceedings section headers. When I run the code below…
cfadr2021
  • 117
  • 5
0
votes
0 answers

Parse Error for XML from url response (text file) with HTML block in starting

I'm trying to scrape file from SEC Edgar's database. I'm able to get the text file using requests. When I try to parse the file using the following code I get parse error. The same code works when I request a .xml url and not a .txt url. Url has the…
drew_psy
  • 95
  • 8
0
votes
0 answers

scraping 1a. risk factors from 10K files

I am trying to get 1a. Risk factors section from each 10-K file. I already downloaded files and saved them as txt. file. ```'/content/drive/My Drive/Colab Notebooks/10/BKR/1.txt' '/content/drive/My Drive/Colab Notebooks/10/BKR/2.txt'``` As such,…
patach
  • 3
  • 3
0
votes
1 answer

How to use dictionary imported from EDGAR using their API

I am very new to python so this is likely a stupid simple question. I have imported financial statements from EDGAR-Online using their API and it imports as a dictionary. I have read all I could find on dictionaries and understand the key:value…
Dwilkin5
  • 9
  • 2
0
votes
1 answer

How to convert messy html table to pandas dataframe

I'm trying to scrape SEC 10-Q and 10-K filings. Though I'm able to extract the tables, the CSV output is a bit messy. Is there any way that I can merge the columns with similar header names with pandas? Or any libraries that can help me export SEC…
0
votes
0 answers

R function getFilings() is saying 2019 and 2020 EDGAR data are not found

I am running the following R code to download filings for a specific year from EDGAR from the SEC website. I am using the "edgar" R package. I use the following code: output <- getFilings(cik.no = c(353905), "ALL", quarter = c(1, 2, 3), 2018,…
0
votes
2 answers

XBRL R package reads adds another link to input link. Resulting in a link that cannot be opened

I'm using XBRL package to import XBRL data from the SEC EDGAR website, and whenever I use xbrlDoAll function, it is unable to read the url, even though I provided the valid one. For example, to replicate this error, use the…
Mons
  • 13
  • 4
0
votes
1 answer

Saving SEC 10-K annual report text to files (trouble with decoding)

I am trying to bulk-download the text visible to the "end-user" from 10-K SEC Edgar reports (don't care about tables) and save it in a text file. I have found the code below on Youtube, however I am facing 2 challenges: I am not sure if I am…
dernuco
  • 15
  • 3
0
votes
2 answers

Cant retrieve company record from EDGAR platform

Im trying to retrieve company information from EDGAR platform with following code: library(edgar) library(tidyverse) library(kableExtra) tesla <- getFilingsHTML( cik.no = 0001318605, form.type = '10-K', filing.year = 2017, quarter =…
Andres Mora
  • 1,040
  • 8
  • 16
0
votes
1 answer

in spyder IDE, run selection works fine, run file keeps running/ hangs

in Spyder IDE, the run selection command (F9) works fine. the run file command (F5) keeps running for hours, without outputs except In [1]: runfile('...\MyFolder\MyScrip.py', wdir='...\MyFolder') until I restart the kernel. already seen this…
A B
  • 1
0
votes
1 answer

I want to parse multiple HTML documents with beautiful soup but I can't make it work

Is there a way to use beautiful soup to parse multiple HTML documents at the same time? I am modifying the code online that extracts HTML.txt files from edgar with beautiful soup so they can be downloaded as formated files: however, I found that my…
0
votes
1 answer

Using apply function for an existing function

I am using "edgarWebR" package to get the data from USSEC EDGAR website. There is a function in the package called "company_filings", which has several arguments and I would like to use four of the arguments and it should be like this…
Sharif
  • 163
  • 1
  • 9