GithubHelp home page GithubHelp logo

urigo / israeli-bank-scrapers-modern-schemas Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 2.0 705 KB

A new architecture for Poalim bank scraper to hopefully merge into Israeli-bank-scrapers when they are ready

TypeScript 100.00%

israeli-bank-scrapers-modern-schemas's Introduction

israeli-bank-scrapers-modern-schemas

A new architecture for Israeli bank scrapers to hopefully merge into Israeli-bank-scrapers when they are ready

This project is very heavily ispired by israeli-bank-scrapers. I was using their scrapers but needed to get:

  1. The original and full responses from the scrapers and not a normalized one
  2. Fully type safe, including the HTTP responses themselves
  3. Varivied against schemas - I wanted to be notified if a bank started sending something a bit different and to understand exactly each field they are sending

I believe this project could be integrated into the original bank scrapers. Or as a dependency (all the additions above are optional with a config) or directly integrating the code.

Currently this library supports Bank Hapoalim, Bank Hapoalim business (with SMS login) and Isracard.

Should be easy to migrate more scrapers from israeli-bank-scrapers into this new form.

israeli-bank-scrapers-modern-schemas's People

Contributors

gilgardosh avatar renovate-bot avatar renovate[bot] avatar urigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

israeli-bank-scrapers-modern-schemas's Issues

Should we take this code change?

Describe the bug

eshaham/israeli-bank-scrapers#738

Your Example Website or App

sadfsdf

Steps to Reproduce the Bug or Issue

Fetch more in a single request if possible

Expected behavior

Fetch more in a single request if possible?

Screenshots or Videos

No response

Platform

Not needed

Additional context

No response

Use REST directly instead of scraping?

In all modern mobile apps for banking, they must use REST to fetch the data. In FIBI for example, it super simple because their website is shitty, but in mobile app they are using REST. Same with Pepper.

You can either use Charles for iOS (https://www.charlesproxy.com/documentation/ios/), or use Charles for Mac (with it's Custom SSL certificate, and install the profile on your mobile phone with a proxy. This way all requests are being decrypted and you can track the complete request on your Macbook, and log the requests and responses).

I did some experiments on the iOS app of Poalim, found the following for example (for getting information about the current account's transactions):

IMG_7073

I think this might simplify the implementation, no? We can even do JSON schema and GraphQL Mesh for that...

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

nodenv
.node-version
  • node 21.6.2
npm
package.json
  • ajv 8.12.0
  • ajv-formats 2.1.1
  • inquirer 9.2.15
  • node-fetch 3.3.2
  • puppeteer 22.1.0
  • uuid 9.0.1
  • @types/inquirer 9.0.7
  • @types/node 20.11.19
  • @types/node-fetch 3.0.3
  • @types/uuid 9.0.8
  • concurrently 8.2.2
  • husky 9.0.11
  • json-schema-to-typescript 13.1.2
  • lint-staged 15.2.2
  • nodemon 3.0.3
  • prettier 3.2.5
  • typescript 5.3.3
  • node 21.6.2

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.