Coder Social home page Coder Social logo

edgar-10k-mda's People

Contributors

tzuhsial avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

edgar-10k-mda's Issues

No module named Pathos

when running the second comment you put in the README:

python form10k.py --index_path ./year2016-2016.10k.index --txt_dir ./data/txt

I get the following error:

Traceback (most recent call last):
File "form10k.py", line 11, in
from pathos.pools import ProcessPool
ModuleNotFoundError: No module named 'pathos'

I tried importing pathos o a different project and it did work

Not available to download the indices

Hi, I am very new to Python coding, so maybe I am missing something. If anyone could resolve my issue, I would appreciate a lot!

When I run step 1 code, I get an error message saying:
(request index - https://www.sec.gov/Archives\edgar\full-index\2016\QTR1\form.idx
writing index to ./index\year2016_qtr1.index
download index failed - https://www.sec.gov/Archives\edgar\full-index\2016\QTR1\form.idx)

Below are my steps to use the provided codes.

  1. download Miniconda
  2. install most recent version of: python, requests, BeautifulSoup, docopt, tqdm, csv, itertools, os, re, unicodedata, namedtuple, glob.
  3. Change cd to the correct folder in Miniconda
  4. Copy and Paste "python edgar.py download index --year-start=2016 --year-end=2016 --index-dir=./index --index-10k-path=index.10k.csv"

ps. I really thanks to the writer of the code who shared his knowledge!

Issue downloading the forms

Hello,

The program is running, it creates the .idx and fills the combined.csv properly, but when it should read the URLs and download the forms from the combined.csv it stop working.
github

Thank you!

The code doesn't run completly.

When I try to run the code it only creates a data folder with subfolders of form10k and index. form10k is an empty folder while the index folder has only 3 files shown in the attached screenshot.

error 2

output file for mda is not txt format

add a txt after * ?

def parse_mda_multiprocess(form_dir: str, mda_dir: str, overwrite: bool = False):
    """ Parse MDA section from forms with multiprocess
    Args:
        form_dir (str)
        mda_dir (str)
    """
    # Create output directory
    os.makedirs(mda_dir, exist_ok=True)

    # Prepare arguments
    form_paths = sorted(glob(os.path.join(form_dir, "*.txt")))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.