Skip to content

Instantly share code, notes, and snippets.

View lffsantos's full-sized avatar

Lucas Farias lffsantos

View GitHub Profile
validate_password(password) {
let minMaxLength = /^[\s\S]{8,32}$/,
upper = /[A-Z]/,
lower = /[a-z]/,
number = /[0-9]/,
special = /[ !"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/;
if (minMaxLength.test(password) &&
upper.test(password) &&
lower.test(password) &&
from collections import defaultdict
import copy
import csv
import json
from urllib.parse import urlparse
def parser_urls(urls, orig={}):
'''
recebe uma lista de urls e vai parseando enquanto essa tiver um diretorio