Microlink × Zalando

Interact with
zalando.es

zalando.js
const mql = require('@microlink/mql')

const zalando = (url, opts) =>
  mql(url, {
    data: {
      price: {
        selector: 'meta[name="twitter:data1"]',
        attr: 'content'
      },
      color: {
        selector: 'meta[name="twitter:data2"]',
        attr: 'content'
      }
    },
    ...opts
  })

const result = await zalando(
  'https://www.zalando.es/jordan-air-jordan-1-mid-zapatillas-altas-joc12n001-g11.html'
)

mql.render(result)