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