@@ -31,7 +31,7 @@ def askUser():
31
31
32
32
''' )
33
33
34
- url = "http ://dash. speedproxies.net/"
34
+ url = "https ://speedproxies.net/"
35
35
page = requests .get (url )
36
36
pageStatus = page .status_code
37
37
if pageStatus == 200 :
@@ -40,10 +40,10 @@ def askUser():
40
40
print (Fore .RED + "API HTTP Error Status: " + str (pageStatus ))
41
41
42
42
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" )
44
44
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 " )
47
47
print (Fore .WHITE + Style .BRIGHT + "[" + Fore .CYAN + Style .BRIGHT + "6" + Fore .WHITE + Style .BRIGHT + "] Quit\n " )
48
48
taskAsk = input (Fore .WHITE + Style .BRIGHT )
49
49
@@ -86,8 +86,8 @@ def askUser():
86
86
userInput = input (Fore .WHITE + Style .BRIGHT + "Username: " ).lower ()
87
87
88
88
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: " ))
91
91
sticky = (input (Fore .WHITE + Style .BRIGHT + "Sticky/Randomize: " )).lower ()
92
92
quantity = input (Fore .WHITE + Style .BRIGHT + "List Size [10/100/1000]: " )
93
93
print (Fore .WHITE + Style .BRIGHT + "Format:" )
@@ -131,9 +131,15 @@ def taskCreate(userCreate):
131
131
132
132
createdUser = jsonResponse ["data" ]["username" ]
133
133
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 ))
134
142
135
- print (Fore .WHITE + Style .BRIGHT + "Proxy Username: " + str (createdUser ))
136
- print (Fore .WHITE + Style .BRIGHT + "Proxy Username: " + str (createdPassword ))
137
143
138
144
main_screen = str (input (Fore .WHITE + Style .BRIGHT + "\n Finished (yes)? \n " )).lower ()
139
145
0 commit comments