docs: function getList (query, options) {
    if (!CX) {
      throw new Error('Environmental variable CX not set')
    }
  
    if (!GOOGLE_API_KEY) {
      throw new Error('Environmental variable GOOGLE_API_KEY not set')
    }
  
    const sites = {
      elpais: 'elpais.com',
      abc: 'abc.es',
      elmundo: 'elmundo.es',
      lavanguardia: 'lavanguardia.com'
    }
  
    const {
      year,
      month,
      date,
      media } = options
  
    const dateString = year + '' + (month < 10 ? '0' + month : month) + '' + date
    const params = {
      cx: CX,
      cr: 'countryES',
      auth: GOOGLE_API_KEY,
      q: query,
      num: 10,
      sort: `date:r:${dateString}:${dateString}`,
      fields: 'queries(nextPage(count,startIndex)),searchInformation(totalResults),items(link,title,pagemap(metatags))',
      siteSearch: sites[media] || ''
    }
  
    return new Promise((resolve, reject) => {
      customsearch.cse.list(params, function (err, resp) {
        if (err) {
          reject(err)
          return
        }
  
        const list = (resp.items && resp.items.map(({ title, link }) => ({ title, link }))) || []
        resolve(list)
      })
    })
  }