Code Monkey home page Code Monkey logo

m1finance-piediff's Introduction

m1finance-piediff

M1 Finance's an unofficial tool to compare 2 pies (yours and shared one)

Sometimes you need to compare two pies to see a slice difference between them. For example, it is super useful to use this tool to keep up to date your pie from a shared pie. So you can compare your pie and shared pie and see the difference.

sampleone

Unfortunately, M1 Finance does not provide any API to make this task easy so as a result you can see selenium as a dependency. Basically you need to download a single binary file to your system, see install section below

Dependencies

To Install

Selenium requires a driver to interface with your favorite browser. Firefox, for example, requires geckodriver, which needs to be installed before the script can be run. Check Drivers section for more info how to install it

After you got the driver, follow the steps below

git clone https://github.com/rooty0/m1finance-piediff.git
cd m1finance-piediff
cp config.example.yaml config.yaml
python3 -m venv venv
venv/bin/pip install -r requirements.txt

Configuration

You need to edit config.yaml configuration file

First open your browser and login to M1 Finance. Then open a session storage of your browser and copy m1_finance_auth.refreshToken (option REFRESH_TOKEN) to the configuration file. An example how to access session storage for Chrome:

right click on a page --> Inspect --> Application --> Sessions Storage --> dashboard.m1finance.com 

Assuming you already downloaded a binary file selenium driver, you need to provide a full path to the file to option SELENIUM_DRIVER_PATH.

Provide full links to SHARED_PIE and MY_PIE

To Run

venv/bin/python piediff.py

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.