Giter VIP home page Giter VIP logo

max-get-transactions's Introduction

max-get-transactions

Repo for getting transactions in Max to a CSV file

DEMO

Background

Max is an israeli credit card company ("Leumi Card" in the past).
Their website max.co.il is not much clear to me and I don't like going into it much. I only wanted to log inside and get my latest transactions from the website. I had an idea to create a tool that will do it for me! At first I thought about using an API to get transactions, seems legit and logical. However Max doesn't support this kind of methods of open-banking. So I had to adapt, improvise and act!

The idea

I present to you another method which is scraping the data using Selenium! Because what doesn't work with mind, works with bigger mind.

Requirements

  • User (and probably credit card) in Max systems.
  • Python

How to use

to start using this tool all you have to do is follow this steps:

  1. Clone this repository
  2. Open the command line in the folder
  3. Run the following command with the flags below
python main.py

Flags

The whole program works through the command line and it needs the right flags.

Required Flags

-e/--email the email address of the user
-p/--password the password of the user
-r/--request tells the request from the program

Email and password must be entered in order to log into the system (your credentials are not sent anywhere).

There are 4 requests you can type

  • ytd - year to date, get all transactions from start of the year till today
  • range - get all transaction within the range
  • month - get all transaction within the month and year specified
  • this_month - get all transaction within this month

For example a user wants the 'ytd' request he must enter:

python main -r ytd -e [email protected] -p user_password

the month request requires month (-m) and year (-y) flags to be specified for example if a user wants his transactions from January 2024 he must enter:

python main -r month -e [email protected] -p user_password -m 1 -y 2024

NOTE: Under month view Max shows transactions from today four years ago until today next year.

The range request asks a start date (-sd) and an end date (-ed). For example if a user wants his transactions from January 7th 2023 until December 17th 2023 he must enter:

python main -r month -e [email protected] -p user_password -sd 2023-01-07 -ed 2023-12-17

NOTE: dates must be in the form of: YYYY-MM-DD.
NOTE2: under range view Max shows transactions from today four years ago until today.

Testing

in order to run the tests you must enter the details in the secret_file.py and then run the command from the main directory:

pytest tests

Otherwise the tests related to the user being logged in won't run properly.

Built with

Technologies used in the project:

  • Python
  • Selenium
  • Pandas
  • Pytest
  • Brain ๐Ÿง 

Bugs and Feature Requests

Some people asked me to tell about my progress in this project. You can see it on the REFLECTION.md file

if you found any bugs or have an idea for features to add feel free to open a new issue

max-get-transactions's People

Contributors

vsciflight avatar

Watchers

 avatar

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.