env toegevoegd voor credentials en settings
This commit is contained in:
3
.env.example
Normal file
3
.env.example
Normal file
@@ -0,0 +1,3 @@
|
||||
HOST=https://192.168.178.xxx
|
||||
USERNAME=admin
|
||||
PASSWORD=jouw_wachtwoord
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
VAN_01971_Transactions.csv
|
||||
*.csv
|
||||
.env
|
||||
|
||||
@@ -2,13 +2,17 @@ import requests
|
||||
import urllib3
|
||||
from datetime import datetime
|
||||
import re
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
# ── Configuratie ──────────────────────────────────────────────
|
||||
HOST = "https://192.168.178.184"
|
||||
USERNAME = "admin"
|
||||
PASSWORD = "Thomas2020"
|
||||
HOST = os.getenv("HOST", "https://192.168.178.184")
|
||||
USERNAME = os.getenv("USERNAME", "admin")
|
||||
PASSWORD = os.getenv("PASSWORD")
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
|
||||
session = requests.Session()
|
||||
|
||||
Reference in New Issue
Block a user