This is a crazy simple script that pulls data from the open FDA API and writes it to a csv.
Ensure that you're in a preferred python dev environment with pip installed, and run pip install -r requirements.txt
2 usages:
-
To pull from the openFDA API, run
python3 fda.pyfrom the root directory. Ensurepython >=3.8Script will start and write afilename.csvlocally, so ensure that system has >= 100mb of memory. -
To convert all 510(k) data from the openFDA, first download the full JSON package and unpack, then run
python3 fda_simple.py