Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit a99b2f7d
authored
2026-04-17 08:44:55 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Actualizo dominio cent
1 parent
756b7488
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
fosadiaria.py
main.py
fosadiaria.py
View file @
a99b2f7
...
@@ -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}
%2
F{mes}
%2
F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
URL
=
f
"""https://rto.cent.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=54&fechaConsulta={dia}
%2
F{mes}
%2
F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
selenium
.
get
(
URL
)
selenium
.
get
(
URL
)
...
...
main.py
View file @
a99b2f7
...
@@ -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
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment