noryev / openlinks-linktree-scraper

NPM library for scraping data from a linktree page. Used within an AWS Lambda Implementation to scrape a customers linktree page to re-make the same page using Openlinks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linktree Profile Scraper

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.

Usage

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

How to get this example to work-

Figure out how to run this example and then record it in here-

Credits

I started this library off from this template: https://github.com/krasimir/webpack-library-starter

License

MIT

About

NPM library for scraping data from a linktree page. Used within an AWS Lambda Implementation to scrape a customers linktree page to re-make the same page using Openlinks.

License:MIT License


Languages

Language:JavaScript 71.7%Language:TypeScript 28.3%