Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

grawlinson/fictionpress-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A promise based scraper for Fictionpress stories.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published