This library helps you pull the raw JSON payload out of a linktree profile. This is by no means an official tool and could break by any code changes from the Linktree team.
Install the package
npm install --save linktree-scraper
Scrape a profile
const Scraper = require("linktree-scraper").default;
Scraper('username').then(profile => {
console.log(profile);
}).catch((error) => {
console.error(error);
console.log('Uh oh!');
});
Here is an example of the data format that is returned.
This repo is intended to be added to the Openlinks project in the form of a fillable form that can automatically scrape the links and input those scraped links into a Openlinks page
Figure out how to run this example and then record it in here-
I started this library off from this template: https://github.com/krasimir/webpack-library-starter
MIT