title: Iterate through an html table using Cheerio
body: <p>I have to iterate through a table and create a json object containing info in this way:</p>
  
  <pre><code>var obj = {
      vaccine: "...",
      year: ...,
      country: "...",
      coverage: ...
  } 
  </code></pre>
  
  <p>The table is:</p>
  
  <pre><code>&lt;table class="ts"&gt;
      &lt;tr&gt;
          &lt;td class="statheadings" colspan="100%" align="center"&gt;
              &lt;h1 class="statistics"&gt;Coverage time series for Italy&amp;nbsp;&amp;nbsp;(ITA)&lt;/h1&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center" colspan="100%"&gt; &lt;font color="red"&gt;
              Last updated 06-Sep-2017 (data as of 05-Sep-2017)&lt;br /&gt;Next overall update 2018&lt;br /&gt;&lt;/font&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="100%" &gt;
              &lt;hr /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;th colspan="4" align="left"&gt;Vacciness&lt;/th&gt;  
          &lt;th class="year"&gt;2016&lt;/th&gt;  
          &lt;th class="year"&gt;2015&lt;/th&gt;  
          &lt;th class="year"&gt;2014&lt;/th&gt;  
          &lt;th class="year"&gt;2013&lt;/th&gt;  
          &lt;th class="year"&gt;2012&lt;/th&gt;  
          &lt;th class="year"&gt;2011&lt;/th&gt;  
          &lt;th class="year"&gt;2010&lt;/th&gt;  
          &lt;th class="year"&gt;2009&lt;/th&gt;  
          &lt;th class="year"&gt;2008&lt;/th&gt;  
          &lt;th class="year"&gt;2007&lt;/th&gt;  
          &lt;th class="year"&gt;2006&lt;/th&gt;  
          &lt;th class="year"&gt;2005&lt;/th&gt;  
          &lt;th class="year"&gt;2004&lt;/th&gt;  
          &lt;th class="year"&gt;2003&lt;/th&gt;  
          &lt;th class="year"&gt;2002&lt;/th&gt;  
          &lt;th class="year"&gt;2001&lt;/th&gt;  
          &lt;th class="year"&gt;2000&lt;/th&gt;  
          &lt;th class="year"&gt;1999&lt;/th&gt;  
          &lt;th class="year"&gt;1998&lt;/th&gt;  
          &lt;th class="year"&gt;1997&lt;/th&gt;  
          &lt;th class="year"&gt;1996&lt;/th&gt;  
          &lt;th class="year"&gt;1995&lt;/th&gt;  
          &lt;th class="year"&gt;1994&lt;/th&gt;  
          &lt;th class="year"&gt;1993&lt;/th&gt;  
          &lt;th class="year"&gt;1992&lt;/th&gt;  
          &lt;th class="year"&gt;1991&lt;/th&gt;  
          &lt;th class="year"&gt;1990&lt;/th&gt;  
          &lt;th class="year"&gt;1989&lt;/th&gt;  
          &lt;th class="year"&gt;1988&lt;/th&gt;  
          &lt;th class="year"&gt;1987&lt;/th&gt;  
          &lt;th class="year"&gt;1986&lt;/th&gt;  
          &lt;th class="year"&gt;1985&lt;/th&gt;  
          &lt;th class="year"&gt;1984&lt;/th&gt;  
          &lt;th class="year"&gt;1983&lt;/th&gt;  
          &lt;th class="year"&gt;1982&lt;/th&gt;
          &lt;th class="year"&gt;1981&lt;/th&gt;    
      &lt;/tr&gt;
  
      &lt;tr class="odd"&gt;
          &lt;td colspan="4" align="left"&gt;
              &lt;a href="timeseries/tscoveragedtp3.html" title="Click for full global time series for DTP3"&gt;DTP3&lt;/a&gt;
          &lt;/td&gt;
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;95&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;97&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;97&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;95&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;94&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;87&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;87&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;86&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;85&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;84&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;84&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;83&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;82&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;       
  
      &lt;tr class="even"&gt;
          &lt;td colspan="4" align="left"&gt; 
          &lt;a href="timeseries/tscoveragehepb3.html" title="Click for full global time series for HepB3"&gt;HepB3&lt;/a&gt;
          &lt;/td&gt;
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          93&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          97&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          94&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          94&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          50&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;     
  
      &lt;tr class="odd"&gt;
          &lt;td colspan="4" align="left"&gt;
              &lt;a href="timeseries/tscoveragedtp3.html" title="Click for full global time series for DTP3"&gt;DTP3&lt;/a&gt;
          &lt;/td&gt;
          ...
  </code></pre>
  
  <p>As you can see, rows are divided in <code>odd</code> and <code>even</code>.</p>
  
  <p>I took this table using <code>Node.js</code>, <code>Express.js</code> and <code>Cheerio</code>.
  This is my code:</p>
  
  <pre><code>const cheerio = require('cheerio');
  const express = require('express');
  var fs = require('fs');
  const request = require('request');
  
  const app = express();
  
  // piece of link of each country
  /*var countries = {
      'Albania': 'ALB',
      'Austria': 'AUT',
      'Belgium': 'BEL',
      'Bulgaria': 'BGR',
      'Croatia': 'HRV',
      'Cyprus': 'CYP',
      'Denmark': 'DNK',
      'Estonia': 'EST',
      'Finland': 'FIN',
      'France': 'FRA',
      'Germany': 'DEU',
      'Greece': 'GRC',
      'Iceland': 'ISL',
      'Ireland': 'IRL',
      'Italy': 'ITA',
      'Latvia': 'LVA',
      'Netherlands': 'NLD',
      'Norway': 'NOR',
      'Poland': 'POL',
      'Portugal': 'PRT',
      'Romania': 'ROU',
      'Slovakia': 'SVK',
      'Slovenia': 'SVN',
      'Spain': 'ESP',
      'Sweden': 'SWE',
      'Switzerland': 'CHE',
      'United Kingdom': 'GBR'
  };*/
  // for test
  var countries = {
      'Albania': 'ALB'
  };
  
  // create variables to create json object
  var jsons = [];
  var json = {vaccine: "", country: "", year: "", coverage: ""};
  
  for(country in countries) {
      var url = 'http://apps.who.int/immunization_monitoring/globalsummary/coverages?c=' + countries[country];
  
      request(url, (function(country) {
          var thisCountry = country;
  
          return function(error, res, html) {
              if(error) {
                  console.log(error);
                  throw error;
              }
  
              // send html response to cheerio to create DOM
              $ = cheerio.load(html);
  
              // arrays containing all the values
              var years = [];
              var vaccines = [];
              var coverages = [];
  
              var i = 1;
  
              // scraping year values
              $('.ts .year').each(function(year) {
                  var country = thisCountry.trim();
                  var year = $(this).text().trim();
                  years.push(year);
                  json.country = country;
                  json.year = year;
              });
              console.log(years, years.length);
  
              // scraping vaccine values
              $('.ts .odd td a').each(function(odd) {
                  var vaccine = $(this).text().trim();
                  vaccines.push(vaccine);
                  json.vaccine = vaccine;
              });
              $('.ts .even td a').each(function(even) {
                  var vaccine = $(this).text().trim();
                  vaccines.push(vaccine);
                  json.vaccine = vaccine;
              });
              console.log(vaccines, vaccines.length);
  
              // scraping coverage values (get all values)
              $('.ts .odd .statistics_small').each(function(oddCoverage) {
                  var coverage = $(this).text().trim();
                  coverages.push(coverage);
              });
              $('.ts .even .statistics_small').each(function(evenCoverage) {
                  var coverage = $(this).text().trim();
                  coverages.push(coverage);
              });
              console.log(coverages, coverages.length);
  
              console.log("i", i); // 1
  
              // scraping coverage values (geto only some values)
              $('.ts .odd:nth-child(' + i + ')').each(function(oddCoverage) {
                  var coverage = $(this).text().trim();
                  json.coverage = coverage;
              });
  
              i++;
              console.log("i", i); // 2
  
              jsons.push(json);
  
              // write jsons on file output.json
              fs.writeFile('output.json', JSON.stringify(jsons, null, 3), function(error) {
                  console.log('File output.json successfully written!');
              });
              console.log("i", i); // 2
  
          } // end return
  
      })(country)); // end request
  }
  </code></pre>
  
  <p>The code doesn't work.</p>
  
  <p>I'm able to retrieve all the years, all the vaccines and all the coverage values.
  But all these values are confused and mixed up.</p>
  
  <p>I'm not sure how to build a json file containing all the orderd and structured values. My goal is a file like that:</p>
  
  <pre><code>[
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2016,
        "coverage": 99
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2015,
        "coverage": 100
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2014,
        "coverage": 100
     },
     {
      ...
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 1981,
        "coverage": 93
     },
     {
        "vaccine": "DTP1",
        "country": "Albania",
        "year": 2016,
        "coverage": 99
     },
     {
      ...
     },
     {
        "vaccine": "DTP1",
        "country": "Albania",
        "year": 1981,
        "coverage": _
     },
     {
        "vaccine": "TT2+",
        "country": "Albania",
        "year": 2016,
        "coverage": _
     },
     {
      ...
     },
     {
        "vaccine": "TT2+",
        "country": "Albania",
        "year": 1981,
        "coverage": _
     },
     {
        "vaccine": "BCG",
        "country": "Austria",
        "year": 2016,
        "coverage": _
     },
     {
      ...
     }
  ]
  </code></pre>
  
  <p>It have to contain <code>576 = 36*16</code> elements.</p>
  
  <p>I try to create an index <code>i</code> to iterate through <code>td</code> element but it doesn't work.
  Now, my <code>output.js</code> file is:</p>
  
  <pre><code>[
     {
        "vaccine": "TT2+",
        "country": "Albania",
        "year": "1981",
        "coverage": ""
     }
  ]
  </code></pre>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>My goal is costruct a json object from a table.</p>
  
  <p>The table:</p>
  
  <pre><code>&lt;table class="ts"&gt;
      &lt;tr&gt;
          &lt;td class="statheadings" colspan="100%" align="center"&gt;
              &lt;h1 class="statistics"&gt;Coverage time series for Italy&amp;nbsp;&amp;nbsp;(ITA)&lt;/h1&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td align="center" colspan="100%"&gt; &lt;font color="red"&gt;
              Last updated 06-Sep-2017 (data as of 05-Sep-2017)&lt;br /&gt;Next overall update 2018&lt;br /&gt;&lt;/font&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td colspan="100%" &gt;
              &lt;hr /&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  
      &lt;tr&gt;
          &lt;th colspan="4" align="left"&gt;Vacciness&lt;/th&gt;  
          &lt;th class="year"&gt;2016&lt;/th&gt;  
          &lt;th class="year"&gt;2015&lt;/th&gt;  
          &lt;th class="year"&gt;2014&lt;/th&gt;  
          &lt;th class="year"&gt;2013&lt;/th&gt;  
          &lt;th class="year"&gt;2012&lt;/th&gt;  
          &lt;th class="year"&gt;2011&lt;/th&gt;  
          &lt;th class="year"&gt;2010&lt;/th&gt;  
          &lt;th class="year"&gt;2009&lt;/th&gt;  
          &lt;th class="year"&gt;2008&lt;/th&gt;  
          &lt;th class="year"&gt;2007&lt;/th&gt;  
          &lt;th class="year"&gt;2006&lt;/th&gt;  
          &lt;th class="year"&gt;2005&lt;/th&gt;  
          &lt;th class="year"&gt;2004&lt;/th&gt;  
          &lt;th class="year"&gt;2003&lt;/th&gt;  
          &lt;th class="year"&gt;2002&lt;/th&gt;  
          &lt;th class="year"&gt;2001&lt;/th&gt;  
          &lt;th class="year"&gt;2000&lt;/th&gt;  
          &lt;th class="year"&gt;1999&lt;/th&gt;  
          &lt;th class="year"&gt;1998&lt;/th&gt;  
          &lt;th class="year"&gt;1997&lt;/th&gt;  
          &lt;th class="year"&gt;1996&lt;/th&gt;  
          &lt;th class="year"&gt;1995&lt;/th&gt;  
          &lt;th class="year"&gt;1994&lt;/th&gt;  
          &lt;th class="year"&gt;1993&lt;/th&gt;  
          &lt;th class="year"&gt;1992&lt;/th&gt;  
          &lt;th class="year"&gt;1991&lt;/th&gt;  
          &lt;th class="year"&gt;1990&lt;/th&gt;  
          &lt;th class="year"&gt;1989&lt;/th&gt;  
          &lt;th class="year"&gt;1988&lt;/th&gt;  
          &lt;th class="year"&gt;1987&lt;/th&gt;  
          &lt;th class="year"&gt;1986&lt;/th&gt;  
          &lt;th class="year"&gt;1985&lt;/th&gt;  
          &lt;th class="year"&gt;1984&lt;/th&gt;  
          &lt;th class="year"&gt;1983&lt;/th&gt;  
          &lt;th class="year"&gt;1982&lt;/th&gt;
          &lt;th class="year"&gt;1981&lt;/th&gt;    
      &lt;/tr&gt;
  
      &lt;tr class="odd"&gt;
          &lt;td colspan="4" align="left"&gt;
              &lt;a href="timeseries/tscoveragedtp3.html" title="Click for full global time series for DTP3"&gt;DTP3&lt;/a&gt;
          &lt;/td&gt;
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;95&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;97&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;97&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;95&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;94&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;96&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;93&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;87&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;87&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;86&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;85&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;84&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;84&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;83&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;82&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;80&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;_&amp;nbsp;&lt;/td&gt;       
  
      &lt;tr class="even"&gt;
          &lt;td colspan="4" align="left"&gt; 
          &lt;a href="timeseries/tscoveragehepb3.html" title="Click for full global time series for HepB3"&gt;HepB3&lt;/a&gt;
          &lt;/td&gt;
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          93&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          97&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          96&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          94&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          94&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          95&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          50&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;    
          &lt;td class="statistics_small" colspan="1"&gt;
          _&amp;nbsp;
          &lt;/td&gt;     
  
      &lt;tr class="odd"&gt;
          &lt;td colspan="4" align="left"&gt;
              &lt;a href="timeseries/tscoveragedtp3.html" title="Click for full global time series for DTP3"&gt;DTP3&lt;/a&gt;
          &lt;/td&gt;
          ...
  </code></pre>
  
  <p>The json object I want:</p>
  
  <pre><code>[
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2016,
        "coverage": 99
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2015,
        "coverage": 100
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 2014,
        "coverage": 100
     },
     {
      ...
     },
     {
        "vaccine": "BCG",
        "country": "Albania",
        "year": 1981,
        "coverage": 93
     },
     {
        "vaccine": "DTP1",
        "country": "Albania",
        "year": 2016,
        "coverage": 99
     },
     {
      ...
     },
     {
        "vaccine": "DTP1",
        "country": "Albania",
        "year": 1981,
        "coverage": _
     },
     {
        "vaccine": "TT2+",
        "country": "Albania",
        "year": 2016,
        "coverage": _
     },
     {
      ...
     },
     {
        "vaccine": "TT2+",
        "country": "Albania",
        "year": 1981,
        "coverage": _
     },
     {
        "vaccine": "BCG",
        "country": "Austria",
        "year": 2016,
        "coverage": _
     },
     {
      ...
     }
  ]
  </code></pre>