Pastebin Scraper Library
Usage
First, to be able to use the library, install it first using the following command
$ npm install pastebin-scraper --save
This library is a promise-based library, so you first must require it in your code and then use it somewhat like this.
const scrape = require('pastebin-scraper')
scrape('https://pastebin.com/4Z489JeC')
.then(res => console.log(res))
//response looks something like this
/*
{
title: 'Pastebin Scraper',
views: '8',
rawData: 'This is for the Pastebin scraper Node.js library',
user: 'mrslurpyboi',
expiration: 'Never',
dateCreated: 'Aug 15th, 2021',
language: 'text'
}
*/
You can run this test this library in the tryit.js folder if you are, for example, running this library in Github or Replit.
v1.0.1