 
     cb days
 
+importer = new ImportAmprion
+importer.fetch "2014-07-01", "wind" 
 importer = new ImportTennet
-importer.fetch "2014-07", (days) -> console.log days
+importer.fetch "2014-07", "wind", (days) -> console.log days
 #importer.fetch "2014-07-01", "wind", "actual", (days) -> console.log days

utils = require "utility"
request = require "request"
csv = require "csv"

class Import

class ImportTennet extends Import
  url: (month) ->
    "http://www.tennettso.de/site/Transparenz/veroeffentlichungen/netzkennzahlen/tatsaechliche-und-prognostizierte-windenergieeinspeisung/tatsaechliche-und-prognostizierte-windenergieeinspeisung/monthDataSheetCsv?monat=#{month}"

  fetch: (month, cb) ->
    request @url(month),
      (error, response, body) =>
        csv.parse body,
          delimiter: ";",


    request @url(day, type, part),
      (error, response, body) =>
        @parse JSON.parse(body.replace(/^jQuery\(/, "").replace(/\);$/, "")), cb

  parse: (data, cb) ->
