metadata-scraper-wintr

1.0.0 • Public • Published

Website metadata scraper powered by WINTR API

Extract any website's metadata

Get started

Installation

$ npm install metadata-scraper-wintr

Scrape website's metadata

const Metascraper = require('metadata-scraper-wintr')
const scraper = new Metascraper('YOUR_WINTR_API_KEY')

scraper.load('WEBSITE_URL') // Example: https://github.com
.then((data) => {
  console.log(data)
})
.catch((err) => {
  console.error(err)
})

Scrape website's metadata with custom headers

const Metascraper = require('metadata-scraper-wintr')
const scraper = new Metascraper('YOUR_WINTR_API_KEY')

scraper.load('WEBSITE_URL', { // Example: https://github.com
  "Accept-Language": "en-US,en;q=0.9,es;q=0.8",
  "Referer": "https://www.google.com"
})
.then((data) => {
  console.log(data)
})
.catch((err) => {
  console.error(err)
})

Package Sidebar

Install

npm i metadata-scraper-wintr

Weekly Downloads

2

Version

1.0.0

License

GNU GENERAL PUBLIC LICENSE

Unpacked Size

38.4 kB

Total Files

4

Last publish

Collaborators

  • vanilla38