Skip to content

Commit

Permalink
1.5.6 (LTS)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvenCores committed Dec 21, 2022
1 parent abb010b commit 96047f6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
25 changes: 14 additions & 11 deletions tools/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,22 @@ def get(self):

html = BS(response.content, "html.parser")

all_list_bs = html.find("div", class_="table_block").find("tbody")
try:
all_list_bs = html.find("div", class_="table_block").find("tbody")

pred_itog = []
for tr in all_list_bs:
for td in tr:
try:
pred_itog.append(td.text.replace(" ", ""))
except:
continue
if len(pred_itog) > 0:
itog[ct].append({"ip": pred_itog[0],
"port": pred_itog[1]})
pred_itog = []
for tr in all_list_bs:
for td in tr:
try:
pred_itog.append(td.text.replace(" ", ""))
except:
continue
if len(pred_itog) > 0:
itog[ct].append({"ip": pred_itog[0],
"port": pred_itog[1]})
pred_itog = []
except:
pass
self.list = itog
bar.next()

Expand Down
22 changes: 14 additions & 8 deletions tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,13 @@ def start(number, country, proxy_=None):
circles += 1
if result[0] != False:
if serv == "magnit":
if result[1]["status_code"] == 200:
FormattingResponse(200, serv)
elif result[1]["status_code"] == 422:
FormattingResponse(429, serv)
if type(result[1]) == dict:
if result[1]["status_code"] == 200:
FormattingResponse(200, serv)
elif result[1]["status_code"] == 422:
FormattingResponse(429, serv)
else:
FormattingResponse(result[0], serv)
else:
FormattingResponse(result[0], serv)
else:
Expand All @@ -735,10 +738,13 @@ def start(number, country, proxy_=None):
circles += 1
if result[0] != False:
if serv == "magnit":
if result[1]["status_code"] == 200:
FormattingResponse(200, serv)
elif result[1]["status_code"] == 422:
FormattingResponse(429, serv)
if type(result[1]) == dict:
if result[1]["status_code"] == 200:
FormattingResponse(200, serv)
elif result[1]["status_code"] == 422:
FormattingResponse(429, serv)
else:
FormattingResponse(result[0], serv)
else:
FormattingResponse(result[0], serv)
else:
Expand Down
2 changes: 1 addition & 1 deletion tools/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.5 (LTS)
1.5.6 (LTS)

0 comments on commit 96047f6

Please sign in to comment.