1.2.0 • Published 4 years ago

pastebin-archive-scrape v1.2.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

pastebin-archive-scrape

Scrapes the pastebin archive page https://pastebin.com/archive

Usage

const pasteScrape = require('pastebin-archive-scrape');

pasteScrape.getPastebinArchives()
  .then(pastebins => {
    console.log(pastebins[0]);
  })

Documentation

getPastebinArchives(): Promise\

object: Pastebin

Example:

{
  "name": "mypastebin",
  "created": "2 days ago",
  "lang": "CSS",
  "id": "RyCdRdYJ"
}