CEDApy/CEDA/config.py

15 lines
445 B
Python
Raw Permalink Normal View History

2021-05-28 08:54:52 +00:00
import requests
def config(http:str, https:str, auth:bool, user:str, passwd:str):
if auth == False:
proxies = {
"http": "{}".format(http),
"https": "{}".format(https)
}
return proxies
if auth == True:
proxies = {
"http": "http://{}:{}@{}".format(user, passwd, http),
"https": "https://{}:{}@{}".format(user, passwd, https),
}
return proxies