A telegram bot that connects to your Nordea SE account and provides a interface to get info about it
This guide will walk you through the process of setting up a Python virtual environment and running a Python script.
Before you begin, make sure you have the following prerequisites installed on your system:
- Python 3.x (You can download it from Python.org)
Clone the repository containing the Python script to your local machine:
git clone https://github.com/BlathanAevon/nordea_bank_bot.git
cd nordea_bank_bot
It's a good practice to create a virtual environment to isolate your project dependencies. To create a virtual environment, run the following command:
python3 -m venv venv
Activate the virtual environment you created in the previous step. The activation process depends on your operating system:
-
On macOS and Linux, use the following command:
source venv/bin/activate
-
On Windows, use the following command:
.\venv\Scripts\activate
To ensure your Python script has access to the required packages and libraries, you need to install the project dependencies. You can do this using pip
, Python's package manager.
Navigate to your project directory (where the script and the virtual environment are located) in your command prompt or terminal. Then, run the following command:
pip install -r requirements.txt
To run your Python script, you may need to configure environment variables with sensitive information or configuration settings. We'll start by copying an .env_template
file and filling it with the required information.
- Locate the
.env_template
file in your project directory and rename it to.env
. If it doesn't exist, create one with the necessary variables and placeholders for sensitive information. For example:
# .env_template
SECRET_ID = gocardless secret id
SECRET_KEY = gocardless secret key
BOT_TOKEN = token of your telegram bot
WEB_APP_URL = redirect url after successfull login to the bank account
ADMIN_ID = id of admin to make noitifications
WEBHOOK_URL = https url of your webhook (a simple https server, i'm using ngrok tunnel)
Note.
You can setup WEBAPP by just using python -m http.server 80
and specifying your machine ip (if white) in the .env
Now that you have set up your virtual environment and installed the necessary dependencies, you can run your Python script.
Navigate to your project directory (where the script is located) in your command prompt or terminal. Then, use the following command to execute your Python script:
python bot.py