Compare commits
3 Commits
10abe03ef9
...
cf38101981
| Author | SHA1 | Date | |
|---|---|---|---|
| cf38101981 | |||
| 43af5446af | |||
| dda1c6800c |
@@ -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}")
|
||||
|
||||
@@ -2,4 +2,7 @@
|
||||
roblosecurity = ""
|
||||
|
||||
# Unpacked luggage
|
||||
dst_dir = "./AppSettings"
|
||||
dst_dir = "./AppSettings"
|
||||
|
||||
# Log levels
|
||||
log_level = "INFO"
|
||||
Reference in New Issue
Block a user