ソースを参照

Correction bug mineur

remy 6 年 前
コミット
9be69bbd92
1 ファイル変更4 行追加5 行削除
  1. 4 5
      Src/Scan.py

+ 4 - 5
Src/Scan.py

@@ -3,25 +3,24 @@ from recup import recupfunc
 from Extraction import *
 
 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:
         add = i.split(";")[1]
         name = i.split(";")[0]
-        
+        parser=MyHTMLParser()
         fichier = "/home/remy/valeurs/" + name + "-" + str(t[2]) + "-" + str(t[1])  + "-" + str(t[0])        
         d = open(fichier,"w")
         
         
         html=recupfunc(add)
-          
         
         graph=parser.Daily(html)
         
         parser.feed(html)
         histo=parser.struct()
         
-        d = open(fichier,"w")
         d.write(str(graph))
         d.write("\r\n")
         d.write(str(histo))