Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
H20CalibreYT authored Nov 14, 2023
1 parent 1ebc229 commit 1d78498
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ def status(text):
status("Getting last names...")
last_names_response = requests.get(last_names_url)

# Verificar si la carga de nombres fue exitosa
# Check if name loading was successful
if first_names_response.status_code == 200 and last_names_response.status_code == 200:
first_names = list(set(first_names_response.text.splitlines()))
last_names = list(set(last_names_response.text.splitlines()))
else:
status("Name loading failed. Re-Execute the script.")
sys.exit()

# Rutas de archivos
# File paths
files_path = os.path.dirname(os.path.abspath(sys.argv[0]))
text_files_folder = os.path.join(files_path, "Accounts")
text_file = os.path.join(text_files_folder, f"Accounts_{date.today()}.txt")
text_file2 = os.path.join(text_files_folder, f"AltManagerLogin_{date.today()}.txt")

# Crear carpeta si no existe
# Create folder if it does not exist
if not os.path.exists(text_files_folder):
os.makedirs(text_files_folder)

# Listas de días, meses y años
# Lists of days, months and years
days = [str(i + 1) for i in range(10, 28)]
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
years = [str(i + 1) for i in range(1980, 2004)]
Expand Down

0 comments on commit 1d78498

Please sign in to comment.