ming 3 jaren geleden
bovenliggende
commit
626c84044b
1 gewijzigde bestanden met toevoegingen van 2 en 7 verwijderingen
  1. 2 7
      dateHTMLsrc/makeHTML.py

+ 2 - 7
dateHTMLsrc/makeHTML.py

@@ -45,14 +45,12 @@ with open('youtubeReport.csv', newline='',encoding='UTF-8') as csvfile:
 
     for row in rows:
         ytlines.append('<tr>')
-        for item in row:
+        for item in row[:-1]:
             ytlines.append('<td>'+item[:15]+'</td>')
-        #db['ytVideos'].insert({'channelTitle':row[0],'subscribes':row[1],'description':row[2]
-        #,'videoTitle':row[3],'publishedAt':row[4],'viewCount':row[5],'likeCount':row[6],'favoriteCount':row[7]})
 
         ytlines.append('</tr>')
 
-numPerPage=15*8
+numPerPage=15*7
 numPerPageY=15*10
 current_idx = 0
 path = 'mix.html'
@@ -65,14 +63,11 @@ for i in range(60):
   for idx in range(i*numPerPageY,i*numPerPageY+numPerPageY):
     f.write(ytlines[idx]+'\n')
 
-
   for l in  lines2:
     f.write(l+'\n')
   for idx2 in range(i*numPerPage,i*numPerPage+numPerPage):
     f.write(fblines[idx2]+'\n')
 
-
-
   for l in  lines3:
     f.write(l+'\n')
   f.write(str(i+6))