fictionpress-scraper: A web scraper for capturing stories

fictionpress-scraper is a web scraper written in Node.js. It makes use of promises which enable asynchronous computations in Node’s event loop. When passed a Fictionpress story ID, this library will verify that the story exists then fetch all the chapters for that story along with some metadata. At this stage, it will provide the story title, author’s name, summary of the story and all chapters (with chapter titles, if available).

This library makes use of the following useful libraries:


npm install fictionpress-scraper --save


const fpScraper = require("fictionpress-scraper");


Fetches information, along with all chapters of the story.

  .then(function(story) {
  .catch(function(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


fictionpress-scraper is released under the MIT License. See

Fork me on GitHub