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 17513a12
authored
2023-10-02 19:44:17 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dsad
1 parent
0d46a2a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
fosadiaria.py
fosadiaria.py
View file @
17513a1
from
datetime
import
datetime
from
datetime
import
datetime
from
time
import
sleep
class
FosaDiaria
():
class
FosaDiaria
():
"""Esta clase almacenara todos los datos de finalizacion de
"""Esta clase almacenara todos los datos de finalizacion de
...
@@ -21,9 +22,9 @@ class FosaDiaria():
...
@@ -21,9 +22,9 @@ class FosaDiaria():
return
data
return
data
self
.
ActualizarDatosDominios
(
selenium
)
self
.
ActualizarDatosDominios
(
selenium
)
return
self
.
LimpiarData
(
data
)
return
self
.
LimpiarData
(
data
,
dominio
,
dia
)
def
LimpiarData
(
self
,
data
):
def
LimpiarData
(
self
,
data
,
dominio
,
dia
):
return
(
data
)
return
(
data
)
def
ActualizarDatosDominios
(
self
,
selenium
):
def
ActualizarDatosDominios
(
self
,
selenium
):
...
@@ -33,11 +34,14 @@ class FosaDiaria():
...
@@ -33,11 +34,14 @@ class FosaDiaria():
mes
=
now
.
strftime
(
"
%
m"
)
mes
=
now
.
strftime
(
"
%
m"
)
ano
=
now
.
strftime
(
"
%
Y"
)
ano
=
now
.
strftime
(
"
%
Y"
)
self
.
LimpiarCarpertaDescarga
()
self
.
LimpiarCarpertaDescarga
()
sleep
(
5
)
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.gov.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=54&fechaConsulta={dia}
%2
F{mes}
%2
F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
print
(
URL
)
print
(
URL
)
selenium
.
get
(
URL
)
selenium
.
get
(
URL
)
sleep
(
5
)
self
.
BajarExcel
()
self
.
BajarExcel
()
def
BajarExcel
(
self
):
def
BajarExcel
(
self
):
pass
pass
...
...
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