Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 4df2ae4

Browse files
authored
Update app.py
1 parent 36f4f5b commit 4df2ae4

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

Diff for: app.py

+14-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def askUser():
3131
3232
''')
3333

34-
url = "http://dash.speedproxies.net/"
34+
url = "https://speedproxies.net/"
3535
page = requests.get(url)
3636
pageStatus = page.status_code
3737
if pageStatus == 200:
@@ -40,10 +40,10 @@ def askUser():
4040
print(Fore.RED + "API HTTP Error Status: " + str(pageStatus))
4141

4242
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "1" + Fore.WHITE + Style.BRIGHT + "] Create new user")
43-
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "2" + Fore.WHITE + Style.BRIGHT + "] Add banwidth to user")
43+
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "2" + Fore.WHITE + Style.BRIGHT + "] Add bandwidth to user")
4444
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "3" + Fore.WHITE + Style.BRIGHT + "] Check user balance")
45-
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "4" + Fore.WHITE + Style.BRIGHT + "] Delete banwidth from user")
46-
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "5" + Fore.WHITE + Style.BRIGHT + "] Proxy Gen")
45+
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "4" + Fore.WHITE + Style.BRIGHT + "] Remove bandwidth from user")
46+
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "5" + Fore.WHITE + Style.BRIGHT + "] Proxy Generator")
4747
print(Fore.WHITE + Style.BRIGHT + "[" + Fore.CYAN + Style.BRIGHT + "6" + Fore.WHITE + Style.BRIGHT + "] Quit\n")
4848
taskAsk = input(Fore.WHITE + Style.BRIGHT)
4949

@@ -86,8 +86,8 @@ def askUser():
8686
userInput = input(Fore.WHITE + Style.BRIGHT + "Username: ").lower()
8787

8888
ssl = "http"
89-
hostname = "dns"
90-
country = (input(Fore.WHITE + Style.BRIGHT + "Country: ")).capitalize()
89+
hostname = "ip"
90+
country = (input(Fore.WHITE + Style.BRIGHT + "Country: "))
9191
sticky = (input(Fore.WHITE + Style.BRIGHT + "Sticky/Randomize: ")).lower()
9292
quantity = input(Fore.WHITE + Style.BRIGHT + "List Size [10/100/1000]: ")
9393
print(Fore.WHITE + Style.BRIGHT + "Format:")
@@ -131,9 +131,15 @@ def taskCreate(userCreate):
131131

132132
createdUser = jsonResponse["data"]["username"]
133133
createdPassword = jsonResponse["data"]["proxy_authkey"]
134+
createdStatus = jsonResponse["status"]
135+
createdMessage = jsonResponse["message"]
136+
137+
if response == 200:
138+
print(Fore.WHITE + Style.BRIGHT + "Proxy Username: " + str(createdUser))
139+
print(Fore.WHITE + Style.BRIGHT + "Proxy Password: " + str(createdPassword))
140+
else:
141+
print(Fore.WHITE + Style.BRIGHT + "Error Creating Username: (Status " + str(createdStatus) +") " + str(createdMessage))
134142

135-
print(Fore.WHITE + Style.BRIGHT + "Proxy Username: " + str(createdUser))
136-
print(Fore.WHITE + Style.BRIGHT + "Proxy Username: " + str(createdPassword))
137143

138144
main_screen = str(input(Fore.WHITE + Style.BRIGHT + "\nFinished (yes)? \n")).lower()
139145

0 commit comments

Comments
 (0)