const mql = require('@microlink/mql')
const meetup = url =>
mql(url, {
adblock: false,
data: {
title: [
{
selector: 'title',
attr: 'text',
type: 'title'
},
{
selector: 'meta[property="og:title"]:not([content=""])',
attr: 'content',
type: 'title'
},
{
selector: 'meta[name="twitter:title"]:not([content=""])',
attr: 'content',
type: 'title'
}
],
description: [
{
selector: 'meta[name="description"]:not([content=""])',
attr: 'content',
type: 'description'
},
{
selector: 'meta[property="og:description"]:not([content=""])',
attr: 'content',
type: 'description'
},
{
selector: 'meta[name="twitter:description"]:not([content=""])',
attr: 'content',
type: 'description'
},
{
selector: '.event-description',
attr: 'text',
type: 'description'
}
],
json: {
selector: 'script[type="application/ld+json"]',
type: 'object'
}
}
})
const { data } = await meetup('https://www.meetup.com/Marin-Mountain-Biking/events/268362491/')
console.log(data)