How to use the israeli-bank-scrapers.createScraper 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.

github GuyLewin / israel-finance-telegram-bot / src / index.js View on Github external
await Promise.all( (service) => {
        const credentials = await this.getCredentialsForService(service);
        if (credentials === null) {
          console.error(`"npm run setup" must be ran before running bot (failed on service ${service.niceName}`);
        const options = Object.assign({ companyId: service.companyId }, config.ADDITIONAL_OPTIONS);
        const scraper = israeliBankScrapers.createScraper(options);
        const scrapeResult = await scraper.scrape(credentials);

        if (scrapeResult.success) {
          scrapeResult.accounts.forEach(this.handleAccount.bind(this, service));
        } else {
          console.error(`scraping failed for the following reason: ${scrapeResult.errorType}`);
    } catch (e) {


Provide scrapers for all major Israeli banks and credit card companies

Latest version published 5 days ago

Package Health Score

82 / 100
Full package analysis

Similar packages