Two Python utility tools built to make it easier to find and download tax forms. The first utility tool takes in input from the command line on the specified tax form name(s) e.g. Form W-2, Form 1095-C and returns json data on the form number, form title, minimum year, and maximum year. The second utility tool takes in a tax form name and a range of years and downloads all of the PDF files in a subdirectory.
Our utility tools allows you to easily search for information regarding past IRS forms.
Follow along with the command line prompts!
Enter the form names you're requesting (e.g. "W-2 W-3 1095-C"), space delimited!
Once you've entered the form names you're searching for, check the JSON data to see if the output is what is expected. If it looks right, enter "y" and the JSON data will be downloaded in your main directory as "data.json".
Enter the form name you want to download. Specify a range (note: ending year is the most recent year).
Your files will be downloaded in a subdirectory!
- Fork and clone this repo.
- Install dependencies:
pip install -r requirements.txt
- Choose from one of two scripts that contain our two different utilities.
- Use
python app.py
to run utility 1 which generates JSON form data or usepython get_pdf.py
to run utility 2 which downloads pdf files into a subdirectory on a specified year range. - Follow our command line guiding :)!
Python Version: 3.9.5
Note: Refer to requirements.txt for a full list of dependencies used for this project.