@5app/opengraph-scraper

1.4.6 • Public • Published

Opengraph Scraper

Given a URL will return meta information about the page.

e.g.

Usage:

// Import
const opengraphScraper = require('@5app/opengraph-scraper');

// Set a timeout in ms
const timeout = 3000;

// Url
const url = 'https://twitter.com/';

// Returns object
const {title, description} = await opengraphScraper(url, timeout);

console.log('Title: ', title, '- Description: ', description);

// Title: 

Readme

Keywords

none

Package Sidebar

Install

npm i @5app/opengraph-scraper

Weekly Downloads

1

Version

1.4.6

License

ISC

Unpacked Size

7.44 kB

Total Files

4

Last publish

Collaborators

  • adodson
  • diondiondion
  • ikhemissi
  • 5app-bot