pastebin-scraper

1.0.2 • Public • Published

Pastebin Scraper Library

NPM

run on repl.it Open Source Awesome

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

Package Sidebar

Install

npm i pastebin-scraper

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • mrslurpyboi