nordea_bank_bot
A telegram bot that connects to your Nordea SE account and provides a interface to get info about it
Installation Guide
This guide will walk you through the process of setting up a Python virtual environment and running a Python script.
Prerequisites
Before you begin, make sure you have the following prerequisites installed on your system:
- Python 3.x (You can download it from Python.org)
Step 1: Clone the Repository
Clone the repository containing the Python script to your local machine:
git clone https://github.com/BlathanAevon/nordea_bank_bot
cd nordea_bank_bot
Step 2: Create a Virtual Environment
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
Step 3: Activate the Virtual Environment
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
Step 4: Install Dependencies
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
Step 5: Configure Environment Variables
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. 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
Step 6: Run the Python Script
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