Commit a99b2f7d by Juan Pablo dure

Actualizo dominio cent

1 parent 756b7488
...@@ -100,13 +100,13 @@ class FosaDiaria(): ...@@ -100,13 +100,13 @@ class FosaDiaria():
def BajarExcel(self,selenium): def BajarExcel(self,selenium):
self.LimpiarCarpertaDescarga() self.LimpiarCarpertaDescarga()
selenium.get("https://rto.cent.gov.ar/rto/RTO/planillaDiaria") selenium.get("https://rto.cent.ar/rto/RTO/planillaDiaria")
now = datetime.datetime.now() now = datetime.datetime.now()
dia = now.strftime("%d") dia = now.strftime("%d")
mes = now.strftime("%m") mes = now.strftime("%m")
ano = now.strftime("%Y") ano = now.strftime("%Y")
self.LimpiarCarpertaDescarga() self.LimpiarCarpertaDescarga()
URL = f"""https://rto.cent.gov.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=54&fechaConsulta={dia}%2F{mes}%2F{ano}&agruparPorLinea=false&format=excel&extension=xls""" URL = f"""https://rto.cent.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=54&fechaConsulta={dia}%2F{mes}%2F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
selenium.get(URL) selenium.get(URL)
......
...@@ -210,7 +210,7 @@ def report(): ...@@ -210,7 +210,7 @@ def report():
return json.dumps(answer) return json.dumps(answer)
def login(u, p, s): def login(u, p, s):
s.get("https://rto.cent.gov.ar/rto") s.get("https://rto.cent.ar/rto")
login = s.find(SI.By.NAME, "j_username") login = s.find(SI.By.NAME, "j_username")
s.write(login, u) s.write(login, u)
...@@ -232,7 +232,7 @@ def login(u, p, s): ...@@ -232,7 +232,7 @@ def login(u, p, s):
raise Exception("Fallo del login") raise Exception("Fallo del login")
def gototec(s, r): def gototec(s, r):
s.get("https://rto.cent.gov.ar/rto/RTO/listaDePlanillas") s.get("https://rto.cent.ar/rto/RTO/listaDePlanillas")
# children of parent of td with innerText = plate # children of parent of td with innerText = plate
found = False found = False
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!