|
@@ -3,25 +3,24 @@ from recup import recupfunc
|
|
|
from Extraction import *
|
|
from Extraction import *
|
|
|
|
|
|
|
|
t = time.localtime()
|
|
t = time.localtime()
|
|
|
-f = open("/home/remy/Bourse/Src/cac.txt","r")
|
|
|
|
|
-parser=MyHTMLParser()
|
|
|
|
|
|
|
+f = open("/home/remy/Projet/Bourse/Src/cac.txt","r") #Ordinateur
|
|
|
|
|
+f = open("/home/remy/Projet/Bourse/Src/cac.txt","r") #
|
|
|
|
|
+
|
|
|
for i in f:
|
|
for i in f:
|
|
|
add = i.split(";")[1]
|
|
add = i.split(";")[1]
|
|
|
name = i.split(";")[0]
|
|
name = i.split(";")[0]
|
|
|
-
|
|
|
|
|
|
|
+ parser=MyHTMLParser()
|
|
|
fichier = "/home/remy/valeurs/" + name + "-" + str(t[2]) + "-" + str(t[1]) + "-" + str(t[0])
|
|
fichier = "/home/remy/valeurs/" + name + "-" + str(t[2]) + "-" + str(t[1]) + "-" + str(t[0])
|
|
|
d = open(fichier,"w")
|
|
d = open(fichier,"w")
|
|
|
|
|
|
|
|
|
|
|
|
|
html=recupfunc(add)
|
|
html=recupfunc(add)
|
|
|
-
|
|
|
|
|
|
|
|
|
|
graph=parser.Daily(html)
|
|
graph=parser.Daily(html)
|
|
|
|
|
|
|
|
parser.feed(html)
|
|
parser.feed(html)
|
|
|
histo=parser.struct()
|
|
histo=parser.struct()
|
|
|
|
|
|
|
|
- d = open(fichier,"w")
|
|
|
|
|
d.write(str(graph))
|
|
d.write(str(graph))
|
|
|
d.write("\r\n")
|
|
d.write("\r\n")
|
|
|
d.write(str(histo))
|
|
d.write(str(histo))
|