@microlink/recipes
Version:
Build something with just a few of lines
25 lines (21 loc) • 452 B
JavaScript
const mql = require('@microlink/mql')
module.exports = (url, opts) =>
mql(url, {
data: {
price: {
selector: '#attach-base-product-price',
attr: 'val',
type: 'number'
},
currency: {
selector: '#attach-base-product-currency-symbol',
attr: 'val'
}
},
...opts
})
module.exports.meta = {
name: 'Amazon',
examples: ['https://www.amazon.com/dp/B08FC6C75Y']
}