How to use the israeli-bank-scrapers.SCRAPERS function in israeli-bank-scrapers

To help you get started, we’ve selected a few israeli-bank-scrapers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GuyLewin / israel-finance-telegram-bot / src / setup.js View on Github external
console.error('Please fix configuration and try again');
    return;
  }

  const serviceResult = await inquirer.prompt([{
    type: 'list',
    name: 'service',
    message: 'Which service would you like to save credentials for?',
    choices: CONFIG.SERVICES.map((service) => {
      return {
        name: service.niceName,
        value: service,
      };
    }),
  }]);
  const { loginFields } = israeliBankScrapers.SCRAPERS[serviceResult.service.companyId];
  const questions = loginFields.map((field) => {
    return {
      type: field === CONSTS.SCRAPER_PASSWORD_FIELD_NAME ? CONSTS.SCRAPER_PASSWORD_FIELD_NAME : 'input',
      name: field,
      message: `Enter value for ${field}:`,
      validate: input => validateNonEmpty(field, input),
    };
  });

  const credentialsResult = await inquirer.prompt(questions);
  setKeytarCredentials(serviceResult.service, credentialsResult);
}

israeli-bank-scrapers

Provide scrapers for all major Israeli banks and credit card companies

MIT
Latest version published 23 hours ago

Package Health Score

77 / 100
Full package analysis