Microlink API connector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const microlink = require('microlink-api') | |
const url = 'https://google.com' | |
const doRequest = microlink.createRule($ => { | |
// do whatever you want here | |
return { | |
title: $('h1'), | |
} | |
}) | |
const data = await doRequest(url) | |
console.log(data); | |
// { | |
// "status": "success" | |
// "data": { | |
// title: 'my custom rule title' | |
// } | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment