After adapting this repo to export journals for a different site there are some clear common behaviours, and the manual tweaks could be refactored into injectable configuration.
Primarily in the parser where matchers could be passed in as an object of anonymous functions that take the cheerio object as their argument, like: key: $ => $.find('.selector').text()
After adapting this repo to export journals for a different site there are some clear common behaviours, and the manual tweaks could be refactored into injectable configuration.
Primarily in the parser where matchers could be passed in as an object of anonymous functions that take the
cheerioobject as their argument, like:key: $ => $.find('.selector').text()