First Run:
pip install -r requirements.txt
Above command will install all the required pakages for the app.
Run the below command on your terminal.
python3 app.py
It will ask you for the rest enpoint of your wordpress ( post/blog/docs ), provide the endpoint and then hit enter. Afterthat, it will ask you for the format json/csv please type the format in your terminal and hit enter it will start generating the files.