File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,49 @@ Requirements
1818
1919- Python >= 2.7 or >= 3.3
2020
21+ DIY-FilingsResearch relies on `PyLucene <http://lucene.apache.org/pylucene/ >`__.
22+ For installation directions see the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/PyLucene-installation-guide >`__.
23+
24+ Initialization
25+ --------------
26+
27+ To start using the library, first import ``Ingestor `` and ``Edgar ``
28+
29+ ::
30+
31+ from ingestor import Ingestor, Edgar
32+
33+ ``Edgar `` (US) and ``Sedar `` (Canada) are currently supported. Note however that the flows are a bit different.
34+ See the note at the bottom about the ``Sedar `` flow.
35+
36+ Simple Download Workflow
37+ ------------------------
38+
39+ First specific what kind of files using the new ``Edgar `` basic object
40+
41+ ::
42+
43+ ingestor = Ingestor()
44+ edgar = Edgar("xbrl")
45+
46+ ``xbrl `` or ``html `` are currently supported
47+
48+ Then pass ``ingest_stock() `` with a stock ticker to ingest and a directory to store the downloaded docs into
49+ ``file_downloader() ``
50+
51+ ::
52+
53+ ingestor.file_downloader(edgar.ingest_stock("AAPL"), downloaded_docs_directory)
54+
55+ See the `wiki <https://github.com/greedo/DIY-FilingsResearch/wiki/Using-the-document-ingestor#sedar-download-workflow-note >`__
56+ for a special note on ``Sedar `` parsing.
57+
58+ Live Demo
59+ ---------
60+
61+ See DIY-FilingsResearch in action: http://finfeed.io/index
62+
63+
2164Testing
2265-------
2366
You can’t perform that action at this time.
0 commit comments