1
0

Compare commits

..

3 Commits

2 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ VERSION = "0.0.1"
# Load configuration
ROBLOSECURITY = config.roblosecurity or None
DST_DIR = config.dst_dir or './AppSettings'
LOG_LEVEL = config.log_level or 'INFO'
# Collect AppSettings endpoints
AppSettings = {
@@ -40,10 +41,13 @@ log.addHandler(logfile_handler)
if ROBLOSECURITY is None:
log.warning(f"{"#"*6} ROBLOSECURITY IS NOT SET, SOME FFLAGS MAY BE MISSING {"#"*6}")
if log.level == logging.DEBUG:
log.warning(f"{"#"*6} DEBUG MODE ENABLED, THIS IS A LITTLE LOUDER {"#"*6}")
os.makedirs(DST_DIR, exist_ok=True)
for AppSetting in AppSettings:
log.info(f"Processing {AppSetting}")
log.debug(f"Processing {AppSetting}")
response = requests.get(AppSettings[AppSetting], headers={"Cookie": f".ROBLOSECURITY={ROBLOSECURITY}"})
if response.status_code == 200:
log.info(f"Successfully retrieved {AppSetting}")

View File

@@ -3,3 +3,6 @@ roblosecurity = ""
# Unpacked luggage
dst_dir = "./AppSettings"
# Log levels
log_level = "INFO"