-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMain.py
More file actions
22 lines (16 loc) · 725 Bytes
/
Main.py
File metadata and controls
22 lines (16 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
__author__ = 'RicardoMoya'
import ScrapBDFutbol as bd_futbol
import ScrapTemporada2018 as this_temporada
# Obtengo los partidos de futbol de las temporadas anteriores
partidos = bd_futbol.get_partidos()
# Obtengo los partidos de futbol de la temporada presente
partidos_2017_18 = this_temporada.get_partidos(bd_futbol.get_contador())
fichero = open('DataSetPartidos.txt', 'w')
fichero.write('idPartido::temporada::division::jornada::EquipoLocal::'
'EquipoVisitante::golesLocal::golesVisitante::fecha::timestamp\n')
for value in partidos.values():
fichero.write('%s\n' % str(value))
for value in partidos_2017_18.values():
fichero.write('%s\n' % str(value))
fichero.close()