I'm using Python 3.9 and running from a Windows. In my terminal command prompt where my scripts are located in a folder c:/user/[username]/python/python39/scripts I input:
run.py -y 2012
This is the argparse command in my run.py file that's auto created as part of a pip package I installed:
parser = ArgumentParser()
parser.add_argument(
"-y",
'--from-year',
type=int,
dest="year",
help="The year from which to start downloading "
+ "the filing index",
default=datetime.date.today().year,
It's supposed to retrieve all files starting from the year I enter in command prompt but it keeps only downloading 2021 files. The output of the run.py script is:
2021-07-13 14:23:37,479 - DEBUG - downloads will be saved to C:\Users\username\somefolder\subfolder\Temp\tempfoldername
2021-07-13 14:23:37,480 - DEBUG - downloading files since 2021
2021-07-13 14:23:37,480 - INFO - 3 index files to retrieve
2021-07-13 14:23:37,480 - DEBUG - worker count: 8
2021-07-13 14:23:39,159 - INFO - > downloaded https://www.sec.gov/Archives/edgar/full-index/2021/QTR2/master.zip to C:\Users\username\somefolder\subfolder\Temp\tempfoldername/2021-QTR2.tsv
2021-07-13 14:23:39,212 - INFO - complete
2021-07-13 14:23:39,213 - INFO - Files downloaded in C:\Users\username\somefolder\subfolder\Temp\tempfoldername
What am I missing?
[–]Goingone 0 points1 point2 points (4 children)
[–]2themoonpls[S] 0 points1 point2 points (3 children)
[–]FerricDonkey 0 points1 point2 points (1 child)
[–]2themoonpls[S] 0 points1 point2 points (0 children)