#!/usr/bin/env python 
# -*- coding: UTF-8 -*-

import urllib.request, re, os, time, requests, datetime
def recup_cand (date, cand) : 

    date= str(date)
    cand = str(cand)
    cand = urllib.parse.quote(cand)
    print(date)
    url = "https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/"+cand+"/daily/2016090100/"+date+"00"
    print(url)
    file = urllib.request.urlopen(url)
    datel = []
    #Récup date
    for i in file :
        i = i.decode()
        j = i.split('"timestamp":"')
        for i in j :
            i = i.split('","')
            if i[0].startswith('20') :
                datel.append(i[0])

    audience = []            
    file = urllib.request.urlopen(url)
    #Récup audience
    for i in file :
        i = i.decode()
        j = i.split('"views":')
        for i in j :
            i = i . split('}')
            if not i[0].startswith('{"items":') :
                audience.append(i[0])
                
    return {"liste_dates" : datel, "liste_audiences" : audience }


liste_cand = ["François_Fillon", "Emmanuel Macron", "Marine Le Pen", "Benoît Hamon","Philippe Poutou","Jean-Luc Mélenchon","Nicolas Dupont-Aignan","Nathalie Arthaud","François Asselineau", 'Jean Lassalle', 'Jacques Cheminade'] 
date = "20170421"
Fillon = []
Macron = []
Le_Pen = []
Hamon = []
Poutou = []
Mélenchon = []
Dupont = []
Arthaud = []
Asselineau = []
Lassalle = []
Cheminade = []
pFillon = []
pMacron = []
pLe_Pen = []
pHamon = []
pPoutou = []
pMélenchon = []
pDupont = []
pArthaud = []
pAsselineau = []
pLassalle = []
pCheminade = []
liste_aud = [Fillon, Macron, Le_Pen, Hamon, Poutou, Mélenchon, Dupont, Arthaud, Asselineau, Lassalle, Cheminade]
liste_pour_aud = [pFillon, pMacron, pLe_Pen, pHamon, pPoutou, pMélenchon, pDupont, pArthaud, pAsselineau, pLassalle, pCheminade]

b = 0
for i in liste_cand :
    cand = i
    retour = recup_cand(date, cand)
    a = 0
    print(i)
    for i in retour["liste_dates"] :
        liste_aud[b].append(retour["liste_audiences"][a] )
        a = a +1
    b = b + 1

a = 0
total = []
for i in Fillon :
    compt = 0
    for j in [0,1,2,3,4,5,6,7,8,9,10] :
        compt = compt + int(liste_aud[j][a])
    a = a + 1
    total.append(compt)

#print(total)
a = 0
for i in retour["liste_dates"] :
    #print(i , ":" , total[a])
    a = a + 1
    
for j in [0,1,2,3,4,5,6,7,8,9,10] :
    b = 0 
    for i in retour["liste_dates"] :
        #print(liste_aud[j][b])
        #print(total[b])
        #print(p)
        p = int(liste_aud[j][b])/int(total[b])
        liste_pour_aud[j].append(round(p,3))
        b = b + 1

#print(retour["liste_dates"])
#print(pFillon)
#print(pMacron)
#print(pLe_Pen)
#print(pHamon)
#print(pPoutou)
#print(pMélenchon)
#print(pDupont)
#print(pArthaud)

y1 = "|y1 = "
y2 = "|y2 = "
y3 = "|y3 = "
y4 = "|y4 = "
y5 = "|y5 = "
y6 = "|y6 = "
y7 = "|y7 = "
y8 = "|y8 = "
y9 = "|y9 = "
y10 = "|y10 = "
y11 = "|y11 = "
liste_ind = [y1,y2,y3,y4,y5,y6,y7,y8,y9,y10,y11] 

a = 0
b = 0

while a < (len(liste_ind)-1) :
    for i in liste_pour_aud :
        b = 0
        
        while b < len(liste_pour_aud[a]) :

            liste_ind[a] = liste_ind[a] + str(liste_pour_aud[a][b]) + ','
            b = b + 1
        print(liste_ind[a])
        a = a + 1
x = "|x = "
a = 0
while a < len(retour["liste_dates"]) :
    l = retour["liste_dates"][a][:4]
    i = retour["liste_dates"][a][4:6]
    j = retour["liste_dates"][a][6:8]
    k = l +"-"+ i +"-"+ j
    #print(k)
    #if k.startswith('01') or k.startswith('15') :
        #x = x + k + ','
    #else :
    x = x + k + ', '   
    a = a + 1

print(x)
    

    

        
    
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Fran%C3%A7ois_Fillon/daily/2016090100/2017042100
François_Fillon
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Emmanuel%20Macron/daily/2016090100/2017042100
Emmanuel Macron
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Marine%20Le%20Pen/daily/2016090100/2017042100
Marine Le Pen
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Beno%C3%AEt%20Hamon/daily/2016090100/2017042100
Benoît Hamon
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Philippe%20Poutou/daily/2016090100/2017042100
Philippe Poutou
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Jean-Luc%20M%C3%A9lenchon/daily/2016090100/2017042100
Jean-Luc Mélenchon
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Nicolas%20Dupont-Aignan/daily/2016090100/2017042100
Nicolas Dupont-Aignan
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Nathalie%20Arthaud/daily/2016090100/2017042100
Nathalie Arthaud
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Fran%C3%A7ois%20Asselineau/daily/2016090100/2017042100
François Asselineau
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Jean%20Lassalle/daily/2016090100/2017042100
Jean Lassalle
20170421
https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/fr.wikipedia/all-access/user/Jacques%20Cheminade/daily/2016090100/2017042100
Jacques Cheminade
|y1 = 0.047,0.051,0.072,0.046,0.069,0.062,0.053,0.044,0.07,0.031,0.015,0.049,0.071,0.108,0.064,0.07,0.058,0.101,0.059,0.08,0.142,0.142,0.085,0.059,0.104,0.103,0.103,0.112,0.098,0.147,0.098,0.121,0.09,0.082,0.058,0.077,0.123,0.109,0.042,0.069,0.073,0.087,0.507,0.435,0.248,0.146,0.325,0.15,0.128,0.116,0.098,0.081,0.139,0.183,0.136,0.137,0.596,0.513,0.315,0.184,0.178,0.17,0.184,0.501,0.454,0.259,0.463,0.388,0.258,0.118,0.155,0.194,0.317,0.344,0.519,0.323,0.128,0.345,0.478,0.508,0.867,0.843,0.783,0.704,0.804,0.788,0.68,0.777,0.808,0.678,0.559,0.394,0.335,0.384,0.289,0.268,0.253,0.207,0.071,0.126,0.122,0.077,0.103,0.175,0.158,0.111,0.155,0.154,0.145,0.133,0.151,0.151,0.142,0.152,0.171,0.181,0.181,0.173,0.166,0.172,0.159,0.181,0.181,0.114,0.157,0.142,0.134,0.146,0.127,0.1,0.144,0.202,0.178,0.078,0.076,0.112,0.067,0.075,0.081,0.084,0.052,0.08,0.054,0.021,0.025,0.058,0.104,0.2,0.264,0.252,0.107,0.091,0.236,0.285,0.37,0.359,0.202,0.141,0.355,0.294,0.258,0.157,0.177,0.181,0.14,0.158,0.135,0.156,0.178,0.116,0.085,0.085,0.081,0.098,0.069,0.049,0.071,0.114,0.069,0.08,0.069,0.24,0.159,0.226,0.287,0.318,0.266,0.146,0.097,0.068,0.046,0.044,0.058,0.077,0.151,0.097,0.101,0.083,0.046,0.041,0.062,0.06,0.066,0.086,0.109,0.101,0.07,0.068,0.218,0.114,0.078,0.074,0.061,0.053,0.068,0.017,0.023,0.044,0.045,0.043,0.056,0.051,0.072,0.057,0.042,0.041,0.053,0.053,0.054,0.057,0.058,0.041,
|y2 = 0.79,0.759,0.442,0.624,0.584,0.523,0.565,0.638,0.474,0.316,0.14,0.322,0.358,0.368,0.26,0.325,0.278,0.306,0.236,0.313,0.337,0.301,0.259,0.484,0.38,0.35,0.335,0.291,0.242,0.24,0.316,0.275,0.383,0.456,0.586,0.28,0.263,0.335,0.113,0.098,0.195,0.223,0.096,0.137,0.218,0.191,0.175,0.298,0.329,0.291,0.231,0.233,0.198,0.166,0.228,0.278,0.068,0.123,0.189,0.233,0.223,0.202,0.238,0.213,0.191,0.226,0.061,0.114,0.293,0.209,0.294,0.266,0.205,0.181,0.13,0.445,0.745,0.495,0.358,0.323,0.074,0.111,0.133,0.185,0.125,0.11,0.144,0.095,0.069,0.107,0.127,0.179,0.227,0.206,0.238,0.282,0.248,0.182,0.121,0.151,0.515,0.619,0.474,0.395,0.311,0.197,0.246,0.279,0.273,0.215,0.274,0.333,0.321,0.336,0.362,0.366,0.281,0.278,0.301,0.26,0.273,0.27,0.325,0.21,0.168,0.174,0.345,0.332,0.33,0.242,0.174,0.218,0.309,0.163,0.213,0.409,0.273,0.273,0.391,0.345,0.277,0.266,0.177,0.086,0.087,0.142,0.082,0.107,0.126,0.163,0.12,0.13,0.174,0.322,0.252,0.241,0.485,0.279,0.238,0.327,0.296,0.23,0.266,0.272,0.246,0.3,0.275,0.296,0.344,0.338,0.304,0.248,0.245,0.23,0.328,0.302,0.358,0.334,0.294,0.309,0.284,0.32,0.489,0.374,0.277,0.259,0.27,0.222,0.263,0.297,0.228,0.388,0.43,0.42,0.265,0.195,0.219,0.195,0.134,0.199,0.224,0.251,0.22,0.221,0.205,0.235,0.178,0.192,0.178,0.235,0.199,0.222,0.307,0.2,0.222,0.063,0.078,0.254,0.22,0.176,0.156,0.113,0.126,0.163,0.145,0.128,0.132,0.144,0.273,0.181,0.16,0.134,
|y3 = 0.032,0.034,0.144,0.053,0.064,0.072,0.072,0.079,0.098,0.041,0.571,0.229,0.141,0.12,0.113,0.129,0.306,0.253,0.368,0.203,0.132,0.14,0.128,0.086,0.097,0.133,0.157,0.152,0.143,0.126,0.138,0.12,0.139,0.097,0.143,0.404,0.3,0.245,0.709,0.558,0.401,0.28,0.18,0.163,0.218,0.227,0.153,0.113,0.129,0.121,0.098,0.1,0.11,0.113,0.151,0.143,0.048,0.083,0.127,0.098,0.135,0.202,0.161,0.072,0.079,0.092,0.032,0.052,0.097,0.369,0.268,0.222,0.176,0.163,0.121,0.072,0.046,0.047,0.05,0.044,0.022,0.014,0.024,0.031,0.019,0.025,0.038,0.031,0.028,0.043,0.051,0.054,0.088,0.075,0.136,0.08,0.081,0.161,0.051,0.07,0.053,0.072,0.118,0.089,0.106,0.059,0.078,0.076,0.11,0.068,0.089,0.085,0.117,0.124,0.107,0.1,0.117,0.096,0.095,0.106,0.102,0.177,0.141,0.067,0.133,0.134,0.099,0.066,0.057,0.057,0.048,0.067,0.071,0.054,0.087,0.068,0.049,0.235,0.118,0.083,0.044,0.059,0.08,0.015,0.013,0.026,0.017,0.026,0.035,0.053,0.033,0.02,0.053,0.064,0.045,0.042,0.068,0.108,0.078,0.082,0.077,0.372,0.256,0.157,0.142,0.142,0.095,0.114,0.102,0.145,0.078,0.089,0.144,0.176,0.194,0.101,0.11,0.132,0.175,0.143,0.207,0.1,0.078,0.09,0.116,0.116,0.101,0.075,0.101,0.07,0.073,0.097,0.067,0.077,0.085,0.12,0.089,0.065,0.052,0.044,0.114,0.09,0.074,0.078,0.079,0.073,0.097,0.086,0.118,0.095,0.074,0.097,0.081,0.106,0.097,0.034,0.036,0.043,0.061,0.068,0.065,0.062,0.059,0.051,0.047,0.064,0.065,0.06,0.066,0.153,0.133,0.072,
|y4 = 0.027,0.024,0.223,0.158,0.081,0.092,0.076,0.051,0.054,0.042,0.048,0.053,0.111,0.046,0.042,0.039,0.032,0.033,0.027,0.038,0.037,0.057,0.044,0.024,0.072,0.046,0.038,0.05,0.057,0.038,0.044,0.044,0.044,0.103,0.034,0.025,0.034,0.035,0.012,0.028,0.056,0.038,0.018,0.023,0.027,0.02,0.032,0.057,0.048,0.051,0.319,0.375,0.303,0.266,0.12,0.055,0.141,0.053,0.044,0.224,0.07,0.049,0.051,0.026,0.027,0.087,0.023,0.039,0.033,0.028,0.024,0.022,0.033,0.018,0.017,0.016,0.011,0.022,0.011,0.01,0.004,0.005,0.006,0.008,0.005,0.016,0.014,0.013,0.01,0.014,0.02,0.078,0.083,0.051,0.045,0.081,0.135,0.104,0.615,0.449,0.143,0.062,0.087,0.102,0.135,0.408,0.225,0.197,0.195,0.228,0.13,0.098,0.096,0.085,0.074,0.081,0.106,0.142,0.103,0.091,0.096,0.091,0.081,0.395,0.329,0.307,0.193,0.156,0.292,0.282,0.188,0.221,0.161,0.486,0.381,0.222,0.395,0.247,0.176,0.238,0.48,0.4,0.188,0.765,0.801,0.638,0.736,0.58,0.435,0.375,0.64,0.57,0.341,0.171,0.178,0.159,0.118,0.223,0.134,0.126,0.141,0.099,0.118,0.19,0.157,0.133,0.296,0.203,0.151,0.163,0.119,0.158,0.141,0.125,0.094,0.085,0.111,0.131,0.153,0.124,0.107,0.089,0.077,0.096,0.128,0.13,0.092,0.094,0.099,0.265,0.132,0.086,0.076,0.064,0.074,0.061,0.131,0.089,0.049,0.161,0.162,0.121,0.088,0.071,0.083,0.072,0.086,0.079,0.064,0.103,0.089,0.075,0.076,0.061,0.077,0.025,0.028,0.041,0.05,0.06,0.054,0.044,0.044,0.067,0.044,0.043,0.05,0.054,0.051,0.054,0.057,0.067,
|y5 = 0.005,0.005,0.004,0.003,0.008,0.01,0.016,0.01,0.014,0.007,0.004,0.01,0.011,0.03,0.018,0.02,0.015,0.011,0.014,0.018,0.02,0.021,0.012,0.011,0.01,0.014,0.021,0.018,0.021,0.018,0.02,0.026,0.031,0.022,0.011,0.014,0.015,0.018,0.006,0.008,0.015,0.018,0.01,0.014,0.016,0.01,0.011,0.015,0.018,0.013,0.016,0.008,0.011,0.013,0.022,0.019,0.005,0.016,0.021,0.011,0.019,0.013,0.017,0.011,0.012,0.014,0.004,0.009,0.017,0.022,0.014,0.014,0.013,0.009,0.01,0.007,0.004,0.005,0.004,0.005,0.002,0.002,0.003,0.004,0.003,0.003,0.006,0.005,0.005,0.009,0.011,0.016,0.019,0.014,0.009,0.014,0.013,0.014,0.005,0.01,0.007,0.005,0.008,0.01,0.014,0.01,0.011,0.013,0.009,0.009,0.012,0.011,0.01,0.012,0.01,0.013,0.013,0.013,0.013,0.019,0.015,0.012,0.012,0.01,0.009,0.009,0.007,0.007,0.008,0.005,0.008,0.008,0.01,0.006,0.009,0.007,0.005,0.008,0.014,0.01,0.006,0.008,0.005,0.003,0.002,0.005,0.003,0.004,0.004,0.004,0.003,0.004,0.007,0.009,0.007,0.01,0.005,0.005,0.008,0.008,0.01,0.008,0.012,0.009,0.009,0.017,0.01,0.012,0.012,0.01,0.007,0.01,0.05,0.023,0.016,0.015,0.02,0.02,0.07,0.072,0.064,0.028,0.024,0.02,0.016,0.013,0.019,0.021,0.018,0.016,0.017,0.013,0.016,0.013,0.027,0.023,0.023,0.041,0.042,0.031,0.012,0.017,0.022,0.029,0.027,0.023,0.018,0.026,0.027,0.025,0.036,0.045,0.037,0.05,0.047,0.089,0.198,0.146,0.094,0.078,0.073,0.11,0.086,0.063,0.047,0.049,0.084,0.056,0.048,0.043,0.04,0.068,
|y6 = 0.062,0.072,0.056,0.053,0.094,0.094,0.092,0.075,0.105,0.514,0.19,0.235,0.202,0.196,0.168,0.183,0.153,0.16,0.155,0.156,0.144,0.16,0.321,0.214,0.224,0.162,0.188,0.205,0.181,0.148,0.155,0.158,0.105,0.091,0.064,0.081,0.098,0.118,0.068,0.145,0.134,0.134,0.065,0.094,0.158,0.321,0.2,0.223,0.181,0.129,0.098,0.111,0.141,0.136,0.184,0.186,0.05,0.088,0.14,0.129,0.223,0.202,0.157,0.073,0.133,0.229,0.394,0.342,0.193,0.138,0.128,0.157,0.136,0.113,0.089,0.07,0.036,0.045,0.046,0.061,0.018,0.014,0.028,0.037,0.022,0.032,0.08,0.057,0.056,0.099,0.164,0.216,0.191,0.205,0.223,0.197,0.187,0.161,0.062,0.106,0.102,0.119,0.131,0.131,0.139,0.119,0.149,0.158,0.155,0.173,0.163,0.143,0.132,0.128,0.141,0.142,0.157,0.155,0.172,0.184,0.184,0.148,0.149,0.105,0.1,0.138,0.137,0.112,0.104,0.243,0.348,0.177,0.153,0.166,0.162,0.126,0.166,0.109,0.131,0.133,0.092,0.118,0.082,0.036,0.035,0.071,0.035,0.05,0.087,0.099,0.057,0.158,0.145,0.082,0.073,0.13,0.081,0.201,0.133,0.103,0.099,0.072,0.104,0.113,0.222,0.14,0.108,0.137,0.134,0.148,0.123,0.166,0.19,0.144,0.104,0.335,0.212,0.154,0.134,0.125,0.143,0.098,0.072,0.069,0.063,0.083,0.079,0.07,0.074,0.059,0.049,0.123,0.088,0.084,0.074,0.084,0.094,0.141,0.204,0.141,0.261,0.295,0.318,0.25,0.21,0.22,0.252,0.185,0.145,0.17,0.216,0.198,0.167,0.261,0.217,0.055,0.098,0.125,0.22,0.244,0.337,0.275,0.235,0.243,0.222,0.236,0.206,0.243,0.198,0.193,0.186,0.143,
|y7 = 0.012,0.016,0.032,0.039,0.044,0.047,0.034,0.031,0.04,0.015,0.01,0.031,0.037,0.045,0.244,0.122,0.06,0.046,0.051,0.058,0.058,0.048,0.042,0.032,0.034,0.042,0.044,0.057,0.14,0.097,0.09,0.145,0.102,0.066,0.04,0.051,0.056,0.048,0.017,0.049,0.045,0.094,0.065,0.065,0.044,0.032,0.054,0.05,0.052,0.181,0.076,0.031,0.032,0.038,0.054,0.064,0.018,0.031,0.052,0.04,0.046,0.054,0.051,0.05,0.034,0.027,0.007,0.018,0.029,0.033,0.041,0.036,0.027,0.095,0.033,0.019,0.007,0.008,0.009,0.01,0.004,0.003,0.007,0.007,0.006,0.007,0.011,0.007,0.007,0.016,0.02,0.018,0.014,0.016,0.016,0.019,0.022,0.038,0.038,0.033,0.022,0.02,0.016,0.026,0.025,0.031,0.039,0.024,0.018,0.055,0.045,0.029,0.03,0.024,0.021,0.021,0.026,0.028,0.027,0.029,0.047,0.036,0.026,0.025,0.023,0.024,0.019,0.11,0.03,0.019,0.029,0.04,0.044,0.014,0.027,0.014,0.013,0.012,0.027,0.043,0.013,0.014,0.01,0.012,0.004,0.007,0.005,0.006,0.009,0.011,0.02,0.007,0.012,0.03,0.044,0.023,0.012,0.015,0.018,0.015,0.059,0.025,0.02,0.021,0.033,0.034,0.021,0.022,0.02,0.021,0.235,0.196,0.091,0.084,0.06,0.048,0.041,0.038,0.035,0.038,0.035,0.043,0.034,0.026,0.033,0.025,0.037,0.051,0.109,0.063,0.048,0.034,0.057,0.041,0.06,0.147,0.077,0.048,0.163,0.25,0.086,0.066,0.067,0.103,0.107,0.092,0.095,0.096,0.052,0.051,0.048,0.05,0.048,0.065,0.057,0.093,0.068,0.045,0.043,0.045,0.045,0.054,0.065,0.042,0.041,0.141,0.063,0.152,0.072,0.072,0.075,0.099,
|y8 = 0.003,0.003,0.003,0.002,0.008,0.012,0.008,0.008,0.009,0.004,0.002,0.01,0.008,0.01,0.011,0.009,0.008,0.007,0.007,0.01,0.01,0.011,0.009,0.007,0.009,0.009,0.016,0.012,0.014,0.083,0.052,0.031,0.016,0.015,0.008,0.008,0.012,0.012,0.008,0.008,0.01,0.013,0.006,0.009,0.009,0.007,0.005,0.008,0.015,0.011,0.007,0.009,0.008,0.008,0.013,0.012,0.004,0.009,0.012,0.009,0.013,0.009,0.017,0.007,0.007,0.01,0.002,0.005,0.01,0.011,0.008,0.009,0.007,0.007,0.007,0.004,0.003,0.003,0.003,0.004,0.001,0.001,0.002,0.002,0.001,0.002,0.004,0.003,0.004,0.006,0.007,0.008,0.008,0.007,0.006,0.008,0.007,0.009,0.003,0.006,0.005,0.003,0.009,0.008,0.008,0.007,0.008,0.009,0.006,0.007,0.009,0.006,0.005,0.007,0.007,0.009,0.008,0.008,0.007,0.01,0.01,0.007,0.009,0.006,0.006,0.006,0.005,0.006,0.004,0.003,0.005,0.005,0.006,0.004,0.006,0.007,0.004,0.006,0.008,0.007,0.005,0.004,0.004,0.001,0.001,0.003,0.001,0.002,0.003,0.002,0.002,0.003,0.004,0.005,0.004,0.004,0.003,0.004,0.005,0.012,0.01,0.005,0.006,0.006,0.008,0.015,0.008,0.01,0.01,0.007,0.016,0.009,0.012,0.018,0.011,0.012,0.009,0.009,0.013,0.019,0.016,0.019,0.017,0.027,0.03,0.011,0.038,0.048,0.037,0.023,0.026,0.024,0.082,0.036,0.075,0.039,0.068,0.038,0.035,0.019,0.01,0.012,0.019,0.022,0.018,0.017,0.024,0.036,0.018,0.048,0.04,0.027,0.018,0.023,0.026,0.08,0.083,0.057,0.052,0.053,0.057,0.051,0.054,0.13,0.1,0.07,0.058,0.044,0.043,0.065,0.051,0.062,
|y9 = 0.012,0.019,0.012,0.011,0.018,0.052,0.042,0.035,0.037,0.012,0.009,0.031,0.032,0.044,0.051,0.067,0.063,0.056,0.052,0.08,0.069,0.077,0.063,0.04,0.035,0.047,0.049,0.051,0.059,0.035,0.041,0.038,0.033,0.034,0.024,0.028,0.065,0.048,0.012,0.019,0.031,0.059,0.032,0.026,0.034,0.024,0.029,0.065,0.064,0.056,0.036,0.029,0.038,0.044,0.045,0.057,0.015,0.031,0.039,0.03,0.04,0.057,0.072,0.025,0.028,0.027,0.007,0.017,0.038,0.036,0.04,0.053,0.057,0.046,0.049,0.028,0.013,0.022,0.03,0.021,0.004,0.004,0.009,0.011,0.008,0.011,0.013,0.006,0.007,0.014,0.024,0.021,0.019,0.025,0.023,0.031,0.031,0.03,0.012,0.024,0.017,0.014,0.028,0.039,0.065,0.033,0.046,0.042,0.042,0.049,0.06,0.07,0.072,0.072,0.054,0.043,0.054,0.048,0.062,0.07,0.062,0.045,0.048,0.04,0.034,0.032,0.026,0.031,0.025,0.022,0.023,0.027,0.034,0.015,0.024,0.022,0.015,0.024,0.039,0.038,0.02,0.033,0.022,0.005,0.006,0.015,0.006,0.012,0.016,0.018,0.007,0.008,0.015,0.016,0.016,0.019,0.015,0.014,0.019,0.021,0.025,0.018,0.023,0.028,0.02,0.028,0.028,0.028,0.026,0.021,0.019,0.02,0.024,0.027,0.028,0.021,0.019,0.026,0.022,0.028,0.031,0.033,0.027,0.033,0.027,0.026,0.038,0.213,0.142,0.097,0.337,0.162,0.093,0.157,0.131,0.114,0.118,0.112,0.085,0.044,0.027,0.034,0.049,0.056,0.055,0.067,0.063,0.083,0.071,0.058,0.078,0.077,0.07,0.058,0.065,0.099,0.079,0.052,0.049,0.05,0.044,0.059,0.119,0.058,0.061,0.056,0.074,0.059,0.057,0.055,0.058,0.063,
|y10 = 0.004,0.008,0.007,0.006,0.017,0.016,0.014,0.012,0.075,0.009,0.004,0.012,0.013,0.013,0.013,0.017,0.015,0.013,0.013,0.022,0.023,0.017,0.015,0.025,0.023,0.077,0.025,0.023,0.022,0.045,0.024,0.018,0.026,0.017,0.012,0.018,0.017,0.015,0.006,0.009,0.026,0.032,0.011,0.02,0.014,0.012,0.008,0.009,0.012,0.014,0.009,0.009,0.009,0.016,0.025,0.027,0.049,0.042,0.045,0.027,0.034,0.027,0.027,0.013,0.022,0.015,0.004,0.007,0.012,0.012,0.012,0.013,0.015,0.013,0.015,0.008,0.004,0.003,0.005,0.008,0.002,0.001,0.002,0.006,0.003,0.002,0.005,0.002,0.003,0.005,0.007,0.007,0.005,0.007,0.006,0.008,0.007,0.008,0.004,0.008,0.006,0.004,0.007,0.014,0.022,0.013,0.028,0.037,0.035,0.052,0.051,0.059,0.064,0.049,0.039,0.031,0.042,0.043,0.036,0.038,0.036,0.019,0.018,0.018,0.03,0.022,0.025,0.022,0.016,0.019,0.025,0.024,0.024,0.008,0.01,0.008,0.01,0.006,0.008,0.01,0.004,0.011,0.374,0.054,0.023,0.032,0.01,0.01,0.019,0.019,0.007,0.005,0.008,0.01,0.006,0.007,0.006,0.007,0.006,0.007,0.018,0.008,0.009,0.015,0.014,0.019,0.011,0.012,0.011,0.02,0.009,0.009,0.01,0.037,0.05,0.015,0.025,0.021,0.019,0.022,0.017,0.012,0.01,0.016,0.01,0.009,0.013,0.021,0.025,0.018,0.015,0.011,0.012,0.009,0.033,0.034,0.045,0.145,0.127,0.044,0.025,0.033,0.048,0.057,0.08,0.07,0.06,0.098,0.069,0.068,0.11,0.094,0.06,0.092,0.08,0.283,0.222,0.139,0.127,0.144,0.085,0.102,0.089,0.077,0.202,0.124,0.113,0.092,0.082,0.085,0.128,0.154,
|y11 = 0.006,0.008,0.006,0.005,0.014,0.021,0.026,0.018,0.025,0.009,0.007,0.019,0.016,0.019,0.017,0.019,0.012,0.014,0.018,0.023,0.029,0.025,0.021,0.017,0.012,0.017,0.025,0.03,0.024,0.024,0.023,0.024,0.03,0.017,0.021,0.013,0.017,0.017,0.006,0.009,0.014,0.022,0.011,0.015,0.015,0.011,0.009,0.013,0.023,0.018,0.011,0.013,0.011,0.016,0.022,0.022,0.006,0.012,0.017,0.014,0.019,0.016,0.024,0.01,0.012,0.014,0.003,0.008,0.021,0.023,0.016,0.014,0.014,0.01,0.011,0.008,0.004,0.006,0.005,0.005,0.002,0.002,0.003,0.004,0.003,0.004,0.005,0.004,0.004,0.009,0.01,0.009,0.012,0.012,0.009,0.012,0.014,0.086,0.019,0.017,0.008,0.005,0.018,0.012,0.017,0.013,0.016,0.012,0.011,0.01,0.016,0.015,0.012,0.012,0.013,0.012,0.015,0.016,0.019,0.021,0.016,0.013,0.011,0.01,0.011,0.012,0.009,0.012,0.008,0.007,0.008,0.01,0.01,0.005,0.008,0.006,0.004,0.006,0.008,0.009,0.008,0.008,0.004,0.002,0.002,0.004,0.002,0.003,0.003,0.003,0.003,0.004,0.006,0.006,0.005,0.006,0.004,0.004,0.007,0.006,0.007,0.006,0.009,0.007,0.009,0.013,0.011,0.011,0.011,0.01,0.006,0.009,0.012,0.039,0.045,0.017,0.024,0.021,0.016,0.04,0.028,0.018,0.015,0.023,0.014,0.011,0.047,0.038,0.035,0.023,0.029,0.016,0.021,0.022,0.024,0.086,0.036,0.043,0.063,0.026,0.017,0.021,0.028,0.027,0.028,0.03,0.058,0.052,0.04,0.033,0.031,0.041,0.075,0.033,0.043,0.161,0.088,0.053,0.041,0.039,0.029,0.08,0.051,0.05,0.049,0.047,0.102,0.044,0.056,0.041,0.054,0.097,
|x = 2016-09-01, 2016-09-02, 2016-09-03, 2016-09-04, 2016-09-05, 2016-09-06, 2016-09-07, 2016-09-08, 2016-09-09, 2016-09-10, 2016-09-11, 2016-09-12, 2016-09-13, 2016-09-14, 2016-09-15, 2016-09-16, 2016-09-17, 2016-09-18, 2016-09-19, 2016-09-20, 2016-09-21, 2016-09-22, 2016-09-23, 2016-09-24, 2016-09-25, 2016-09-26, 2016-09-27, 2016-09-28, 2016-09-29, 2016-09-30, 2016-10-01, 2016-10-02, 2016-10-03, 2016-10-04, 2016-10-05, 2016-10-06, 2016-10-07, 2016-10-08, 2016-10-09, 2016-10-10, 2016-10-11, 2016-10-12, 2016-10-13, 2016-10-14, 2016-10-15, 2016-10-16, 2016-10-17, 2016-10-18, 2016-10-19, 2016-10-20, 2016-10-21, 2016-10-22, 2016-10-23, 2016-10-24, 2016-10-25, 2016-10-26, 2016-10-27, 2016-10-28, 2016-10-29, 2016-10-30, 2016-10-31, 2016-11-01, 2016-11-02, 2016-11-03, 2016-11-04, 2016-11-05, 2016-11-06, 2016-11-07, 2016-11-08, 2016-11-09, 2016-11-10, 2016-11-11, 2016-11-12, 2016-11-13, 2016-11-14, 2016-11-15, 2016-11-16, 2016-11-17, 2016-11-18, 2016-11-19, 2016-11-20, 2016-11-21, 2016-11-22, 2016-11-23, 2016-11-24, 2016-11-25, 2016-11-26, 2016-11-27, 2016-11-28, 2016-11-29, 2016-11-30, 2016-12-01, 2016-12-02, 2016-12-03, 2016-12-04, 2016-12-05, 2016-12-06, 2016-12-07, 2016-12-08, 2016-12-09, 2016-12-10, 2016-12-11, 2016-12-12, 2016-12-13, 2016-12-14, 2016-12-15, 2016-12-16, 2016-12-17, 2016-12-18, 2016-12-19, 2016-12-20, 2016-12-21, 2016-12-22, 2016-12-23, 2016-12-24, 2016-12-25, 2016-12-26, 2016-12-27, 2016-12-28, 2016-12-29, 2016-12-30, 2016-12-31, 2017-01-01, 2017-01-02, 2017-01-03, 2017-01-04, 2017-01-05, 2017-01-06, 2017-01-07, 2017-01-08, 2017-01-09, 2017-01-10, 2017-01-11, 2017-01-12, 2017-01-13, 2017-01-14, 2017-01-15, 2017-01-16, 2017-01-17, 2017-01-18, 2017-01-19, 2017-01-20, 2017-01-21, 2017-01-22, 2017-01-23, 2017-01-24, 2017-01-25, 2017-01-26, 2017-01-27, 2017-01-28, 2017-01-29, 2017-01-30, 2017-01-31, 2017-02-01, 2017-02-02, 2017-02-03, 2017-02-04, 2017-02-05, 2017-02-06, 2017-02-07, 2017-02-08, 2017-02-09, 2017-02-10, 2017-02-11, 2017-02-12, 2017-02-13, 2017-02-14, 2017-02-15, 2017-02-16, 2017-02-17, 2017-02-18, 2017-02-19, 2017-02-20, 2017-02-21, 2017-02-22, 2017-02-23, 2017-02-24, 2017-02-25, 2017-02-26, 2017-02-27, 2017-02-28, 2017-03-01, 2017-03-02, 2017-03-03, 2017-03-04, 2017-03-05, 2017-03-06, 2017-03-07, 2017-03-08, 2017-03-09, 2017-03-10, 2017-03-11, 2017-03-12, 2017-03-13, 2017-03-14, 2017-03-15, 2017-03-16, 2017-03-17, 2017-03-18, 2017-03-19, 2017-03-20, 2017-03-21, 2017-03-22, 2017-03-23, 2017-03-24, 2017-03-25, 2017-03-26, 2017-03-27, 2017-03-28, 2017-03-29, 2017-03-30, 2017-03-31, 2017-04-01, 2017-04-02, 2017-04-03, 2017-04-04, 2017-04-05, 2017-04-06, 2017-04-07, 2017-04-08, 2017-04-09, 2017-04-10, 2017-04-11, 2017-04-12, 2017-04-13, 2017-04-14, 2017-04-15, 2017-04-16, 2017-04-17, 2017-04-18, 2017-04-19, 2017-04-20,