Skip to content

exoticchild-alt/pastebin-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pastebin Scraper Library

NPM License NPM Downloads
NPM
GitHub Release Issues
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

About

Scrapes a pastebin paste and gives data about it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published