UNPKG

n26-puppeteer-scraper

Version:

n26 scraper: a tool to download account informations and transactions archive

13 lines (9 loc) 430 B
const debug = require('debug') const n26getBankStatements = require('./n26-get-bank-statements') const log = debug('n26:determine-start-date-of-archive') module.exports = async function determineStartDateOfArchive (page) { log('navigating to https://app.n26.com/downloads') await page.goto('https://app.n26.com/downloads') const bankStatements = await n26getBankStatements(page) return bankStatements[0].date + '-01' }