Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
loading from proxys.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinLage committed Jun 14, 2020
1 parent 82b20f2 commit b8ef4c3
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 11 deletions.
29 changes: 18 additions & 11 deletions YouTube Livestream Botter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║╚════╝██╔══██╗██║ ██║ ██║ ██║ ██╔══╝ ██╔══██╗
███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║ ██████╔╝╚██████╔╝ ██║ ██║ ███████╗██║ ██║
╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
https://github.com/KevinLage/YouTube-Livestream-Botter
"""

print(intro)
Expand All @@ -25,8 +27,8 @@
else:
clear = "clear"

def randomName(size=11, chars=string.ascii_letters + string.digits):
return ''.join(random.choice(chars) for i in range(size))
proxy_loading = input("[1] Load Proxys from APIs\n[2] Load Proxys from proxys.txt\n")



token = input("ID?\n")
Expand Down Expand Up @@ -55,15 +57,20 @@ def printservice(self): #print screen
time.sleep(0.5)
a = main()
class proxy():

global proxy_loading
def update(self):
while True:
data = ''
urls = ["https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&ssl=yes","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]
for url in urls:
data += requests.get(url).text

self.splited += data.split("\r\n") #scraping and splitting proxies

if proxy_loading == "1":
data = ''
data = open("proxys.txt", "r").read()
self.splited += data.split("\n") #scraping and splitting proxies
else:
data = ''
urls = ["https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&ssl=yes","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]
for url in urls:
data += requests.get(url).text
self.splited += data.split("\r\n") #scraping and splitting proxies
time.sleep(600)

def get_proxy(self):
Expand Down Expand Up @@ -94,11 +101,11 @@ def bot():


a.botted += 1
except Exception as E:
except:
pass


time.sleep(7)

maxthreads = int(input("How many Threads? Recommended: 500 - 1000\n"))

threading.Thread(target=a.printservice).start()
Expand Down
38 changes: 38 additions & 0 deletions proxys.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
104.248.123.62:3128
138.197.157.32:8080
154.16.202.22:3128
167.172.238.206:8080
162.243.108.129:3128
188.120.232.181:8118
185.25.206.192:8080
185.137.232.95:80
46.4.96.137:3128
46.4.96.137:8080
163.172.190.160:8811
163.172.180.18:8811
167.71.61.177:3128
188.226.141.211:8080
185.25.206.192:3128
188.226.141.211:3128
167.71.138.227:80
138.197.157.32:3128
167.71.5.83:8080
188.226.141.61:8080
188.226.141.61:3128
185.25.207.165:3128
198.199.120.102:3128
188.166.83.17:3128
176.9.119.170:3128
169.51.52.227:3128
172.254.124.231:3128
176.9.75.42:3128
207.246.77.148:8080
207.154.231.213:8080
207.154.231.213:3128
51.15.80.136:3128
18.224.39.7:3128
217.61.21.73:8080
51.158.123.250:8811
52.179.231.206:80
176.9.119.170:8080
176.9.63.62:3128

1 comment on commit b8ef4c3

@dhocin
Copy link

@dhocin dhocin commented on b8ef4c3 Jun 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I said very thanks to you kevin, but you can show me how do with this script step by step. Cause i already tryin but i get error as always.
Thankyou

Please sign in to comment.