1.0.1 • Published 6 years ago

url-scrapper v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

url-scrapper

A node.js module that extracts the metadata of a URL

Install

npm install url-scrapper

Usage

const scrapper = require("url-scrapper");

try {
  const metadata = await scrapper("https://github.com")
  console.log('metadata info', metadata);

  //response
  /**
  * { 
  *   author: null,
  *   date: null,
  *   description: 'GitHub is where people build software..',
  *   image: 'https://assets-cdn.github.com/images/modules/open_graph/github-logo.png',
  *   logo: 'https://assets-cdn.github.com/favicon.ico',
  *   publisher: 'GitHub',
  *   title: 'Build software better, together',
  *   url: 'https://github.com'
  *  }
  **/

} catch (e) {
  console.error(e);
}

License

MIT