KevinLage / YouTube-Livestream-Botter

Simple tool to bot viewers to a YouTube Livestream!
518 stars 343 forks source link

Need help to fix Yt bot #54

Closed Max-Doom closed 4 years ago

Max-Doom commented 4 years ago

hi guys, I am working on patched c# 2020 YT Bot but I replace user agents, API link but still not working, maybe some things still wrong and maybe API link, and I am also new in view bots things so can you guys help me to fix it. and guys the main point is this I don't have its real source code, my friend bought it so I decompiled it and remaking it.

Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1

string request = string.Format("https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage&cpn={0}&docid={1}&ver=2&referrer=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D{2}&cmt={3}&plid={4}&ei={5}&fmt=136&fs=0&rt={6}&of={7}&euri&lact={8}&live=dvr&cl={9}&state=playing&vm={10}&volume={11}&c=WEB&cver={12}&cplayer=UNIPLAYER&cbrand=apple&cbr=Safari%20Mobile&cbrver=12.1.15E148&cmodel=iphone&cos=iPhone&cosver=12_2&cplatform=MOBILE&delay=5&hl={17}&cr={18}&rtn={19}&afmt=140&lio=1556394045.182&idpj={21}&ldpj={22}&rti={23}&muted=0&st={24}&et={25}", (object)cpn, (object)Program.docid, (object)Program.docid, (object)str2, (object)plid, (object)ei, (object)str3, (object)of, (object)lact, (object)cl, (object)vm, (object)vol, (object)cver, (object)cbr, (object)cbrver, (object)cos, (object)cosver, (object)hl, (object)cr, (object)num3, (object)rndval, (object)idpj, (object)ldpj, (object)num4, (object)str1, (object)str2);

9ofe commented 4 years ago

if u mean rubot yeah it was so easy to decomplie :)

harcheema commented 4 years ago

yt bot not work now please fix it

beacon09a commented 4 years ago

hi kevin yt bot not work now please fix it help thanks

jonathanbj1977 commented 4 years ago

wow so is true :( this bot was so simple just run exe and watch your view grow :( yea this is sad not working for real, we need make some donation to kevin we need hwlp devs too.

harcheema commented 4 years ago

Its Issue With Proxyscrape SIte not working now . program is fully worked

beacon09a commented 4 years ago

are there alternatives besides Proxyscrape SIte??

RokoZonar commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

jonathanbj1977 commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

RokoZonar commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

the watching increases, but somehow it reaches only upto 20 not sure why.

jonathanbj1977 commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

the watching increases, but somehow it reaches only upto 20 not sure why.

is there any way to reverse this bot to the way it was before this happen??

RokoZonar commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

the watching increases, but somehow it reaches only upto 20 not sure why.

is there any way to reverse this bot to the way it was before this happen??

not sure. the issue is not with the program, the proxyscape has implemented some mechanism for load balancing or to save from ddos attack hence it is unable to get the proxy list. I'm testing few things and will post if it works.

jonathanbj1977 commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

the watching increases, but somehow it reaches only upto 20 not sure why.

is there any way to reverse this bot to the way it was before this happen??

not sure. the issue is not with the program, the proxyscape has implemented some mechanism for load balancing or to save from ddos attack hence it is unable to get the proxy list. I'm testing few things and will post if it works.

thanks you so much this will save many lives out there man!! this is great!! **and for all those who use the bot this work needs support from us at least with donations since we are getting a lot help from tis guys and this bot !!)

RokoZonar commented 4 years ago

It is working... check the current views on https://www.youtube.com/watch?v=7OERpO65SNg

To make this work, you need to install a webserver on your local machine. Then download whatever proxies you can and save it to a text file inside the webserver folder. and in class proxy(): change the first url to the url of the text file on your machine. Make sure to use http and not https. eg: urls = ["http://localhost/dashboard/links.txt","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]

keep the second url which is proxy-list as it is. Check it out!

Max-Doom commented 4 years ago

if u mean rubot yeah it was so easy to decomplie :)

no this is not rubot, it runs on cmd console ...

RokoZonar commented 4 years ago

In class proxy(): change the url to "https://api.proxyscrape.com/?request=getproxies&proxytype=http&timeout=10000&country=all&ssl=all&anonymity=all" it works again!

what is working guys?? i try bot and is not doing nothing

the watching increases, but somehow it reaches only upto 20 not sure why.

is there any way to reverse this bot to the way it was before this happen??

not sure. the issue is not with the program, the proxyscape has implemented some mechanism for load balancing or to save from ddos attack hence it is unable to get the proxy list. I'm testing few things and will post if it works.

thanks you so much this will save many lives out there man!! this is great!! **and for all those who use the bot this work needs support from us at least with donations since we are getting a lot help from tis guys and this bot !!)

check my above post.

Max-Doom commented 4 years ago

i saw

RokoZonar commented 4 years ago

simultaneously running for 2 live videos and working like a charm.

  1. https://www.youtube.com/watch?v=3aT0TVsRflY
  2. https://www.youtube.com/watch?v=7OERpO65SNg
Max-Doom commented 4 years ago

wait i am updating this bot, because i have my private lists of working links, i will donating some

RokoZonar commented 4 years ago

Damn, this bot just got better than before! watching reached 900! lol check link 1

freetextmike commented 4 years ago

can you share your proxy list buddy? i wanna try this one

Max-Doom commented 4 years ago

xd, i saw its fun

Max-Doom commented 4 years ago

What you were use Roko zonar Htpp or Socks4

RokoZonar commented 4 years ago

doesn't matter, tried both and both works. Even Sock 5 works. lol

RokoZonar commented 4 years ago

Trying on this little dude here: https://www.youtube.com/watch?v=JHiNTebrj_s

freetextmike commented 4 years ago

im having a hard time compiling brothers i have error here

from queue import Queue

ImportError: No module named queue

whats the workaround

bangbang113 commented 4 years ago

can someone explain how to fix this

Max-Doom commented 4 years ago

import os import random import string import threading import time from queue import Queue import platform

import requests from colorama import Fore, init

intro = """ ███████╗████████╗██████╗ ███████╗ █████╗ ███╗ ███╗ ██████╗ ██████╗ ████████╗████████╗███████╗██████╗ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██╔══██╗████╗ ████║ ██╔══██╗██╔═══██╗╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗ ███████╗ ██║ ██████╔╝█████╗ ███████║██╔████╔██║█████╗██████╔╝██║ ██║ ██║ ██║ █████╗ ██████╔╝ ╚════██║ ██║ ██╔══██╗██╔══╝ ██╔══██║██║╚██╔╝██║╚════╝██╔══██╗██║ ██║ ██║ ██║ ██╔══╝ ██╔══██╗ ███████║ ██║ ██║ ██║███████╗██║ ██║██║ ╚═╝ ██║ ██████╔╝╚██████╔╝ ██║ ██║ ███████╗██║ ██║ ╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ Update By DOOM """

print(intro)

if platform.system() == "Windows": #checking OS clear = "cls" else: clear = "clear"

def randomName(size=11, chars=string.ascii_letters + string.digits): return ''.join(random.choice(chars) for i in range(size))

token = input("ID?\n") url= "https://m.youtube.com/watch?v=" + token url2 = "https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage&cpn=Syr16u8qwHnPkVqI&docid=" + token + "&ver=2&cmt=2094&ei=1EJtXou2C6eoxN8PpqqNqAg&fmt=133&fs=0&rt=1769&of=rkW8h_g-Pta1U6EIuWGdvw&euri&lact=7275&live=dvr&cl=300532980&state=playing&vm=CAEQABgEKhhJc0gwZ2w0QmFfbTBWSXlWNm9ITmRRPT06MkFOcHN5N0FhUWlHOHl5QkQySUF1OGt6amlZYjZwN3hzNzRXV3hhTEE4NDZVU1h2TTV3&volume=100&c=MWEB&cver=2.20200313.03.00&cplayer=UNIPLAYER&cbrand=apple&cbr=Safari%20Mobile&cbrver=12.1.15E148&cmodel=iphone&cos=iPhone&cosver=12_2&cplatform=MOBILE&delay=5&hl=ru&cr=IQ&rtn=2069&afmt=140&lio=1556394045.182&idpj=&ldpj=&rti=1769&muted=0&st=2094&et=2394" class main(object): def init(self): self.combolist = Queue() self.Writeing = Queue() self.printing = [] self.botted = 0 self.combolen = self.combolist.qsize()

def printservice(self): #print screen
    while True:
        if True:
            os.system(clear)
            print(Fore.LIGHTCYAN_EX + intro + Fore.LIGHTMAGENTA_EX)
            print(
                Fore.LIGHTCYAN_EX + f"Botted:{self.botted}\n")
            for i in range(len(self.printing) - 10, len(self.printing)):
                try:
                    print(self.printing[i])
                except (ValueError, Exception):
                    pass
            time.sleep(0.5)

a = main() class proxy():

def update(self):
    while True:
        data = ''
        urls = ["https://www.proxy-list.download/api/v1/get?type=http","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):
    random1 = random.choice(self.splited) #choose a random proxie
    return random1
def FormatProxy(self):
    proxyOutput = {'https' :'https://'+self.get_proxy()}
    return proxyOutput

def __init__(self):
    self.splited = []
    threading.Thread(target=self.update).start()
    time.sleep(3)

proxy1 = proxy() def bot(): while True: try: s = requests.session()

        resp = s.get("https://m.youtube.com/watch?v=" + token,headers={'Host': 'm.youtube.com', 'Proxy-Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7', 'Accept-Encoding': 'gzip, deflate'},proxies=proxy1.FormatProxy())   # simple get request to youtube for the base URL
        url = resp.text.split(r'videostatsWatchtimeUrl\":{\"baseUrl\":\"')[1].split(r'\"}')[0].replace(r"\\u0026",r"&").replace('%2C',",").replace("\/","/")  #getting the base url for parsing
        cl = url.split("cl=")[1].split("&")[0] #parsing some infos for the URL 
        ei = url.split("ei=")[1].split("&")[0]
        of = url.split("of=")[1].split("&")[0]
        vm = url.split("vm=")[1].split("&")[0]
        s.get("https://s.youtube.com/api/stats/watchtime?ns=yt&el=detailpage&cpn=isWmmj2C9Y2vULKF&docid=" + token + "&ver=2&cmt=7334&ei=" + ei + "&fmt=133&fs=0&rt=1003&of=" + of +"&euri&lact=4418&live=dvr&cl=" + cl + "&state=playing&vm=" + vm + "&volume=100&c=MWEB&cver=2.20200313.03.00&cplayer=UNIPLAYER&cbrand=apple&cbr=Safari%20Mobile&cbrver=12.1.15E148&cmodel=iphone&cos=iPhone&cosver=12_2&cplatform=MOBILE&delay=5&hl=ru&cr=GB&rtn=1303&afmt=140&lio=1556394045.182&idpj=&ldpj=&rti=1003&muted=0&st=7334&et=7634",headers={'Host': 's.youtube.com', 'Proxy-Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1', 'Accept': 'image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5', 'Accept-Language': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3', 'Referer': 'https://m.youtube.com/watch?v=' + token},proxies=proxy1.FormatProxy())   # API GET request

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

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

threading.Thread(target=a.printservice).start() num = 0 while num < maxthreads : num += 1 threading.Thread(target=bot).start()

threading.Thread(target=bot).start()

RokoZonar commented 4 years ago

The proxy scape is not working. so we need to run webserver on our own machine to server the proxy addresses. copy/download proxy to a text file in the webserver folder where it can be accessed by web browser. Suppose your file name is proxy.txt then it should be accessible using a broswer at http://localhost/proxy.txt Once this is done, use the link http://localhost/proxy.txt in the python code in class proxy(). Change to urls = ["http://localhost/proxy.txt","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]

Max-Doom commented 4 years ago

Guys, Just Copy and Replace it in your Old YouTube-Livestream-Botter-master.py

Kevin Lage I also wants to contribute in this project how can I join you?

RokoZonar commented 4 years ago

im having a hard time compiling brothers i have error here

from queue import Queue

ImportError: No module named queue

whats the workaround

you need to install all the modules. here queue is missing so on cmd type: pip install queue

freetextmike commented 4 years ago

File "bot.py", line 26 clear="cls" ^ IndentationError: expected an indented block

now im having this sigh. i already have a proxy list just a matter of compiling the python code,

btw what version of python u guys are using?

bangbang113 commented 4 years ago

im literally lost on all this please do not judge lol can someone explain step by step what do i need in order to fix it

Max-Doom commented 4 years ago

RokoZonar this is not easy for everyone, Can we made something for them

RokoZonar commented 4 years ago

we can compile an exe, thats easy but how will we configure web server on their machine? this is an issue.

Max-Doom commented 4 years ago

And can anyone help me to fix patched c# view bot

freetextmike commented 4 years ago

im running it on debian 9 vps and i did copy paste @Max-Doom code but it gives me IndentationError.

can you paste the code on pastebin @Max-Doom

jonathanbj1977 commented 4 years ago

dudes you are missing something here many of us don't know anything about this (for me I'm looking at Chinese letters) to be honest, things were simple when just was right click, copy, paste video code, set 1000 and done. (now we need download stuff ect ect. if somehow you are doing this much better, thank you,thanks a lot!! BUT, somehow, is possible a tutorial (video not on youtube) or a note tutorial with a better and explanation??? we all really need this bot, please help us :)

bangbang113 commented 4 years ago

@RokoZonar can you download anydesk and do mine for me please

jonathanbj1977 commented 4 years ago

The proxy scape is not working. so we need to run webserver on our own machine to server the proxy addresses. copy/download proxy to a text file in the webserver folder where it can be accessed by web browser. Suppose your file name is proxy.txt then it should be accessible using a broswer at http://localhost/proxy.txt Once this is done, use the link http://localhost/proxy.txt in the python code in class proxy(). Change to urls = ["http://localhost/proxy.txt","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]

dudes you are missing something here many of us don't know anything about this (for me I'm looking at Chinese letters) to be honest, things were simple when just was right click, copy, paste video code, set 1000 and done. (now we need download stuff ect ect. if somehow you are doing this much better, thank you,thanks a lot!! BUT, somehow, is possible a tutorial (video not on youtube) or a note tutorial with a better and explanation??? we all really need this bot, please help us :)

bangbang113 commented 4 years ago

what @jonathanbj1977 said LMAO

Max-Doom commented 4 years ago

freetextmike if you getting any problem just replace this line and tell me what happens

urls = ["https://www.proxy-list.download/api/v1/get?type=http","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]

jonathanbj1977 commented 4 years ago

what @jonathanbj1977 said LMAO

if we need to do all this crap to make bot work??

bangbang113 commented 4 years ago

can one of you guys who know how to fix it download any desk and do it for me please

Max-Doom commented 4 years ago

wait giving mega link

freetextmike commented 4 years ago

freetextmike if you getting any problem just replace this line and tell me what happens

urls = ["https://www.proxy-list.download/api/v1/get?type=http","https://www.proxy-list.download/api/v1/get?type=https&anon=elite"]

i get the proxy @Max-Doom but the thing is i cannot compile the *.py file because im having a lot of compilation errors can you paste your code on pastebin i'll share my big proxy list

bangbang113 commented 4 years ago

i feel like a retard lol

bangbang113 commented 4 years ago

i just wanna viewbot LOL

jonathanbj1977 commented 4 years ago

i just wanna viewbot LOL

same here lol lol

RokoZonar commented 4 years ago

okay guys wait. give me your anydesk id. I will do following things:

  1. install web server
  2. generate proxy list
  3. check python and the viewbot script to see if it works.
bangbang113 commented 4 years ago

336198479