Created
April 5, 2022 21:45
-
-
Save fierroformo/34847cf8f638ee2c43db7c9cce758475 to your computer and use it in GitHub Desktop.
Buscador de citas - Placas Zacatecas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import requests | |
import time | |
url = "http://portaltributario.zacatecas.gob.mx/api/citas/buscar" | |
data = {"criterio": "{{ numero_de_pago }}", "importe": "{{ cobro }}"} | |
while True: | |
time.sleep(600) | |
response = requests.post(url, json=data) | |
if response.json()["idHorarios"]: | |
print("¡Ya hay citas disponibles!", datetime.now()) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment