Providing the body and the headers with the user credentials (DNI, fecha examen, tipo permiso, fecha de nacimiento), results request is automatized.
Useful if integrated in an iterative environment.
git clone [email protected]:genismoreno/dgt_test_results.git
cd dgt_test_results
pip install -r requirements.txt
- Create body.txt and headers.txt files
python main.py
- requests
- lxml (html)
All info could be provided from the browser console when accessing via web (recommended way).
body.txt
Text contentheaders.txt
Text content in raw format. Code is capable of converting it to a dictionary.