metadata-scraper-wintr
v1.0.0
Published
Extract any website's metadata
Downloads
9
Maintainers
Readme
Website metadata scraper powered by WINTR API
Extract any website's metadata
Get started
- Create an account on WINTR to get an API KEY
- Visit your WINTR account info dashboard and copy your API KEY
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)
})