worm-scraper/lib/common.js
Domenic Denicola b68b88e17e While downloading, save a cache manifest alongside
This allows us to keep track of the chapter title after the fact.
2015-05-11 21:24:15 -04:00

5 lines
139 B
JavaScript

"use strict";
exports.getChapterTitle = function (rawChapterDoc) {
return rawChapterDoc.querySelector("h1.entry-title").textContent;
};