Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/muni-town/linktree-parser

linktree-parser is a TypeScript library for scraping and extracting account, links, banners, and metadata from Linktree profiles.
https://github.com/muni-town/linktree-parser

bun deno javascript-library linktree nodejs parser scraper typescript-library webscraping

Last synced: 23 days ago
JSON representation

linktree-parser is a TypeScript library for scraping and extracting account, links, banners, and metadata from Linktree profiles.

Awesome Lists containing this project

README

        

# linktree-parser

### Installation

#### NPM

```bash
npm install linktree-parser
```

#### PNPM

```bash
pnpm add linktree-parser
```

#### BUN

```bash
bun add linktree-parser
```

### Example

```ts
import { scrapeLinktreeAccount } from "linktree-parser";

const { account, error, raw } = await scrapeLinktreeAccount("harshmangalam");

if (error) {
console.error(error);
}

if (account) {
const { username, links, socialLinks, profilePictureUrl } = account;
}
```

This project was created using `bun init` in bun v1.1.0. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.