datamule 0.423__cp312-cp312-win_amd64.whl → 0.426__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- datamule/downloader/downloader.py +6 -6
- datamule/parser/sgml_parsing/sgml_parser_cy.c +1812 -888
- datamule/parser/sgml_parsing/sgml_parser_cy.cp312-win_amd64.pyd +0 -0
- {datamule-0.423.dist-info → datamule-0.426.dist-info}/METADATA +4 -4
- {datamule-0.423.dist-info → datamule-0.426.dist-info}/RECORD +7 -8
- datamule/parser/document_parsing/generalized_xml_parser.py +0 -0
- {datamule-0.423.dist-info → datamule-0.426.dist-info}/WHEEL +0 -0
- {datamule-0.423.dist-info → datamule-0.426.dist-info}/top_level.txt +0 -0
@@ -268,7 +268,7 @@ class Downloader:
|
|
268
268
|
self.current_pbar = None
|
269
269
|
return results, parsed_results
|
270
270
|
|
271
|
-
def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None,
|
271
|
+
def download_submissions(self, output_dir='filings', cik=None, ticker=None, submission_type=None, filing_date=None, parse=True):
|
272
272
|
"""Main method to download SEC filings."""
|
273
273
|
self.parse_filings = parse
|
274
274
|
|
@@ -288,12 +288,12 @@ class Downloader:
|
|
288
288
|
|
289
289
|
params['forms'] = ','.join(submission_type) if isinstance(submission_type, list) else submission_type if submission_type else "-0"
|
290
290
|
|
291
|
-
if isinstance(
|
292
|
-
dates = [(d, d) for d in
|
293
|
-
elif isinstance(
|
294
|
-
dates = [
|
291
|
+
if isinstance(filing_date, list):
|
292
|
+
dates = [(d, d) for d in filing_date]
|
293
|
+
elif isinstance(filing_date, tuple):
|
294
|
+
dates = [filing_date]
|
295
295
|
else:
|
296
|
-
date_str =
|
296
|
+
date_str = filing_date if filing_date else f"2001-01-01,{datetime.now().strftime('%Y-%m-%d')}"
|
297
297
|
start, end = date_str.split(',')
|
298
298
|
dates = [(start, end)]
|
299
299
|
|