1.0.9 • Published 5 years ago

fictionpress-scraper v1.0.9

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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)

1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago