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 cc08430b
authored
2024-06-18 10:34:28 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Solucuinado error de operacion ilegal
1 parent
c9901f4c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
configuracion.py
fosadiaria.py
grep.sh
main.py
configuracion.py
View file @
cc08430
...
...
@@ -5,3 +5,4 @@ deltaminutos = 7
delataPositivoNegativo
=
"-"
ManualLogin
=
False
# PAra hacer pruebas sin tener que loguear
port
=
11500
codigo_cent
=
"61"
fosadiaria.py
View file @
cc08430
...
...
@@ -106,7 +106,7 @@ class FosaDiaria():
mes
=
now
.
strftime
(
"
%
m"
)
ano
=
now
.
strftime
(
"
%
Y"
)
self
.
LimpiarCarpertaDescarga
()
URL
=
f
"""https://rto.cent.gov.ar/rto/report/planillaDiariaEXCEL/planillaDiariaEXCEL?codTaller=
130
&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=
{codigo_cent}
&fechaConsulta={dia}
%2
F{mes}
%2
F{ano}&agruparPorLinea=false&format=excel&extension=xls"""
selenium
.
get
(
URL
)
...
...
grep.sh
View file @
cc08430
#!/bin/bash
ls /home/juan/Descargas/ -ls | grep Planilla_Diaria-
130
| grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_1.txt
ls /home/juan/Descargas/ -ls | grep Planilla_Diaria-
61
| grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_1.txt
main.py
View file @
cc08430
...
...
@@ -209,6 +209,7 @@ def report():
answer
[
'header'
][
"hora"
]
=
str
(
fingfd
)
s
.
driver
.
quit
()
print
(
"report"
,
answer
)
return
json
.
dumps
(
answer
)
def
login
(
u
,
p
,
s
):
...
...
@@ -315,6 +316,9 @@ def readdata(s, r):
r
[
'gaseshumos'
][
'co'
]
=
_e2q
(
_attempt
(
reach
(
f
"cantCO"
),
"?"
)(
s
))
r
[
'gaseshumos'
][
'hc'
]
=
_e2q
(
_attempt
(
reach
(
f
"cantHC"
),
"?"
)(
s
))
#Nivel sonoro
#r['ruido']["nivelsonoro"] = _e2q(_attempt( reach(f"extEscape"), "?" )(s))
#print(r)
return
r
def
rnddata
(
r
):
...
...
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