const ao3scraper = require('ao3scraper')
//replace with your fic, this is just for demo
const pageURL = "https://archiveofourown.org/works/35864404"
ao3scraper(pageURL).then(ficInfo => {
//do something with results
}).catch(err => {
// This code block will also execute if the link is a 404
console.error(err)
});