2023-05-16 16:33:36 -04:00
|
|
|
|
2023-05-31 09:28:47 -04:00
|
|
|
def get_base_url(site: dict):
|
2023-05-16 16:33:36 -04:00
|
|
|
if (site.get("user") == "" and site.get("password") == ""):
|
|
|
|
return (f"http://{site.get('url')}")
|
|
|
|
else:
|
|
|
|
return (f"http://{site.get('user')}:{site.get('password')}@{site.get('url')}")
|
2023-05-17 05:08:40 -04:00
|
|
|
|
|
|
|
def get(dictionnarys: list, key: str):
|
|
|
|
lst = []
|
|
|
|
for dictionnary in dictionnarys:
|
|
|
|
lst.append(dictionnary.get(key))
|
|
|
|
return (lst)
|