fictionpress-scraper

1.0.9 • Public • Published

fictionpress-scraper

A promise based scraper for Fictionpress stories.

Installation

npm install fictionpress-scraper --save

Usage

const fpScraper = require("fictionpress-scraper");
 
fpScraper
  .getStory(storyID)
  .then(function(story) {
    console.log(story);
  })
  .catch(function(error) {
    console.log(error);
  });

The following properties are available on the returned story object:

{
  "id": Number,
  "title": String,
  "author": {
    "id": Number,
    "name": String
  },
  "summary": String,
  "noOfChapters": Number,
  "content": []
}

story.content is an array filled with chapter objects with the following structure:

{
  "id": Number,
  "title": String,
  "data": String
}

License

The MIT License (MIT)

Package Sidebar

Install

npm i fictionpress-scraper

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • grawlinson