@myno_21/pinterest-scraper
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

accessibility text

Build Status Codecov License

Pinterest-Scraper

Fetch information about a pin, board, user and many more, without any API KEY or ACCESS TOKEN.

Why to use?

  • Flexible
  • Exceedingly fast
  • Includes type definition
  • Lightweight

Features

  • │ Get specific pin
  • │ Search up to 80 + pins
  • │ Get information about a user.
  • │ Get board information

🔗 Prerequisites

  • NodeJS 16 +

Installation

$ npm install @myno_21/pinterest-scraper

Import

import * as Pinterest from "@myno_21/pinterest-scraper";

Example

import * as Pinterest from "@myno_21/pinterest-scraper";

(async () => {
  await get();
})(); // Anonymous arrow function
async function get() {
  const postId = "459156124515639652";
  const response = await Pinterest.getPins(postId);
  console.log(response);
}

Output

{
  tags: [
    'Motivacional Quotes',
    'Cute Quotes',
    'Words Quotes',
    'Best Quotes',
    'Funny Quotes',
    '2 Word Sayings',
    'Motivational Short Quotes',
    'Cute Short Quotes',
    'Inspo Quotes'
  ],
  post: 'https://i.pinimg.com/originals/68/a8/58/68a85891ccbac21aba585d1fc42a7ec8.jpg',
  description: "When you feel low and unhappy, you create exactly that life, full of unhappy feelings, and this can be an emotional block, preventing you from manifesting your dreams. So let's dive into the topic of how you can create your own happiness.",
  title: 'Just Create Your Own Happiness',
  username: 'SheBeKrafty-Kelen┃Mental Health, Chronic Illness, Anxiety',
  followers: '1k',
  image: 'https://i.pinimg.com/75x75_RS/63/f0/ca/63f0ca7bb609c35149679b682b95d2eb.jpg',
  comments: 45,
}

🔗 Links

License

ISC

Package Sidebar

Install

npm i @myno_21/pinterest-scraper

Weekly Downloads

5

Version

1.0.4

License

ISC

Unpacked Size

30.1 kB

Total Files

39

Last publish

Collaborators

  • myno_21