Airkek / Youtube-Viewers

simple C# Youtube livestream botter
MIT License
211 stars 108 forks source link

any update ! Hearbeat url works ?? Or not #121

Closed Swamitg closed 3 years ago

bangbang113 commented 3 years ago

Followinh

hippy4200 commented 3 years ago

No description provided.

By looks of things I dont think the program will be even running anymore

Airkek commented 3 years ago

No description provided.

By looks of things I dont think the program will be even running anymore

still working on it

Airkek commented 3 years ago

it's hard to emulate heatbeat request

hippy4200 commented 3 years ago

it's hard to emulate heatbeat request

We understand and thank u so much for working on the problem ๐Ÿ˜€๐Ÿ˜Š

lenonleverson commented 3 years ago

it's hard to emulate heatbeat request

this url, is the watchtime that fetches the arguments ?, the problem is not fetching the arguments ?

Airkek commented 3 years ago

so i can't emulate heartbeat url and i'm not sure if this is what i need

Airkek commented 3 years ago

i tried to set new arguments from watchtime but nothing happens

hippy4200 commented 3 years ago

i tried to set new arguments from watchtime but nothing happens

Keep up the great work ๐Ÿ˜Š

Airkek commented 3 years ago

i gonna publish my twitch bot, hope it working (accidently found it on hard drive)

hippy4200 commented 3 years ago

i gonna publish my twitch bot, hope it working (accidently found it on hard drive)

Is it same kinda program as the last 1 ๐Ÿ˜๐Ÿ™‚?

lenonleverson commented 3 years ago

i gonna publish my twitch bot, hope it working (accidently found it on hard drive)

I'm going to buy this program, do you think you can decompile it?, it's working, I'll send you

youtube.com/watch?v=bufhRFy18d4

Airkek commented 3 years ago

Is it same kinda program as the last 1

yes but for twitch

hippy4200 commented 3 years ago

i gonna publish my twitch bot, hope it working (accidently found it on hard drive)

I'm going to buy this program, do you think you can decompile it?, it's working, I'll send you

youtube.com/watch?v=bufhRFy18d4

Just let the author work at one thing at a time ๐Ÿ˜Š

Airkek commented 3 years ago

I'm going to buy this program, do you think you can decompile it?, it's working, I'll send you

youtube.com/watch?v=bufhRFy18d4

seems like shitty chromedriver program

also it's on c++, i cant decompile c++

lenonleverson commented 3 years ago

seems like shitty chromedriver program

also it's on c++, i cant decompile c++

friend is just that, i'm trying to help with the code, i don't seem to have the strength to get a url, everyone is using cookies, and this program is working,

lenonleverson commented 3 years ago

I understand, I'd rather buy yours for sure, so I'm waiting, but I also want to help you with the code, for a little bit of notion, but it seems that the heartbeat is changing at the time of the request, it doesn't come with cpn, for example, it comes with cl

hippy4200 commented 3 years ago

Is it same kinda program as the last 1

yes but for twitch

So the program you are working on wont work for YouTube just twitch?

Airkek commented 3 years ago

Is it same kinda program as the last 1

yes but for twitch

So the program you are working on wont work for YouTube just twitch?

yes but i'm not working on it, it's one of my old programs

hippy4200 commented 3 years ago

Is it same kinda program as the last 1

yes but for twitch

So the program you are working on wont work for YouTube just twitch?

yes but i'm not working on it, it's one of my old programs

Thank u and hopefully u be able to get a YouTube one going soon ๐Ÿ˜Š

Airkek commented 3 years ago

image

by the way, this is what I was working on until the program broke

hippy4200 commented 3 years ago

image

by the way, this is what I was working on until the program broke

Well that's sucks but hopefully u be able make a program for YouTube soon and not just twitch.. thanks for all your hard work ๐Ÿ˜Š

lenonleverson commented 3 years ago

by the way, this is what I was working on until the program broke

show, I would like to understand a little more about these requests, I would pass these urls with no problem whenever necessary.

hippy4200 commented 3 years ago

by the way, this is what I was working on until the program broke

show, I would like to understand a little more about these requests, I would pass these urls with no problem whenever necessary.

Try to make your own program if you can ๐Ÿ˜Š

lenonleverson commented 3 years ago

image

would heartbeat be here?

bangbang113 commented 3 years ago

Where will you be uploading the twitch bot?

Airkek commented 3 years ago

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

bangbang113 commented 3 years ago

Okay let me know! Appreciate you๐ŸŒธ

lenonleverson commented 3 years ago

would heartbeat be here?

image

sorry last image

hippy4200 commented 3 years ago

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

Is there any chance of getting this program back up and running?

bangbang113 commented 3 years ago

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

Is there any chance of getting this program back up and running?

They are trying to figure out whatโ€™s causing the issue

hippy4200 commented 3 years ago

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

Is there any chance of getting this program back up and running?

They are trying to figure out whatโ€™s causing the issue

๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š

hippy4200 commented 3 years ago

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

Is there any chance of getting this program back up and running?

They are trying to figure out whatโ€™s causing the issue

๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š

Where will you be uploading the twitch bot?

github may be i should test if it works before uploading but my proxy provider banned me for TooManyRequests

Is there any chance of getting this program back up and running?

They are trying to figure out whatโ€™s causing the issue

๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š

I got faith that they will figure the problem out ๐Ÿ˜Š

hippy4200 commented 3 years ago

lets us know if you need help with anything :)

4seovn commented 3 years ago

I see. Other people have used cookies

lenonleverson commented 3 years ago

Vou publicar meu twitch bot, espero que funcione (acidentalmente o encontrei no disco rรญgido)

Vou comprar este programa, vocรช acha que pode descompilar ?, estรก funcionando, vou te enviar

youtube.com/watch?v=bufhRFy18d4

esse programa funciona, como o bot seu airkek e via proxy, nรฃo abre chromedrive e com baixo consumo de memoria, estou tentando extrair a heartbeat assim que conseguir mando aqui pra vcs, รฉ que estou sem tempo sรณ trabalho de madrugada

esta pegando 300 views com proxys ruins

IceyTroll commented 3 years ago

Here is the code for my working hearbeat. For the key you need INNERTUBE_API_KEY and for heartbeatServerData you can find that info in https://www.youtube.com/youtubei/v1/player?key={INNERTUBE_API_KEY}

Looking good though if you got any question. let me know and i will try to help you out. You still only need call the wachtime endpoint for a view to count from what I understand.

public static async Task HeartBeatAsync(string key, string heartbeatServerData, string videoId, WebProxy myProxy)
        {
            int sequenceNumber = 1;
            while (true)
            {
                var postUrl = "https://www.youtube.com/youtubei/v1/player/heartbeat?alt=json&key=" + key;
                string data = "{\"videoId\":\"" + videoId + "\",\"sequenceNumber\":" + sequenceNumber + ",\"heartbeatServerData\":\"" + heartbeatServerData + "\",\"context\":{\"client\":{\"hl\":\"sv\",\"gl\":\"SE\",\"remoteHost\":\"" + _proxy + "\",\"deviceMake\":\"\",\"deviceModel\":\"\",\"visitorData\":\"\",\"userAgent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36,gzip(gfe)\",\"clientName\":\"WEB\",\"clientVersion\":\"2.20210627.07.00\",\"osName\":\"Windows\",\"osVersion\":\"10.0\",\"originalUrl\":\"https://www.youtube.com/watch?v=" + videoId + "\",\"platform\":\"DESKTOP\",\"clientFormFactor\":\"UNKNOWN_FORM_FACTOR\",\"timeZone\":\"Europe/Stockholm\",\"browserName\":\"Chrome\",\"browserVersion\":\"91.0.4472.114\",\"screenWidthPoints\":1920,\"screenHeightPoints\":937,\"screenPixelDensity\":1,\"screenDensityFloat\":1,\"utcOffsetMinutes\":120,\"userInterfaceTheme\":\"USER_INTERFACE_THEME_LIGHT\",\"connectionType\":\"CONN_CELLULAR_4G\",\"mainAppWebInfo\":{\"graftUrl\":\"https://www.youtube.com/watch?v=" + videoId + "\",\"webDisplayMode\":\"WEB_DISPLAY_MODE_BROWSER\",\"isWebNativeShareAvailable\":true},\"playerType\":\"UNIPLAYER\",\"tvAppInfo\":{\"livingRoomAppMode\":\"LIVING_ROOM_APP_MODE_UNSPECIFIED\"},\"clientScreen\":\"WATCH_FULL_SCREEN\"},\"user\":{\"lockedSafetyMode\":false},\"request\":{\"useSsl\":true,\"internalExperimentFlags\":[],\"consistencyTokenJars\":[]},\"adSignalsInfo\":{\"params\":[{\"key\":\"dt\",\"value\":\"1624994257667\"},{\"key\":\"flash\",\"value\":\"0\"},{\"key\":\"frm\",\"value\":\"0\"},{\"key\":\"u_tz\",\"value\":\"120\"},{\"key\":\"u_his\",\"value\":\"18\"},{\"key\":\"u_java\",\"value\":\"false\"},{\"key\":\"u_h\",\"value\":\"1080\"},{\"key\":\"u_w\",\"value\":\"1920\"},{\"key\":\"u_ah\",\"value\":\"1040\"},{\"key\":\"u_aw\",\"value\":\"1920\"},{\"key\":\"u_cd\",\"value\":\"24\"},{\"key\":\"u_nplug\",\"value\":\"3\"},{\"key\":\"u_nmime\",\"value\":\"4\"},{\"key\":\"bc\",\"value\":\"31\"},{\"key\":\"bih\",\"value\":\"937\"},{\"key\":\"biw\",\"value\":\"1904\"},{\"key\":\"brdim\",\"value\":\"0,0,0,0,1920,0,1920,1040,1920,937\"},{\"key\":\"vis\",\"value\":\"2\"},{\"key\":\"wgl\",\"value\":\"true\"},{\"key\":\"ca_type\",\"value\":\"image\"}]},\"clickTracking\":{\"clickTrackingParams\":\"CAAQu2kiEwiumNyrx73xAhVGFrIKHTIbDMQ=\"},\"activePlayers\":[{\"playerContextParams\":\"Q0FFU0FnZ0M=\"}]},\"cpn\":\"N0UiuEWiP5WuQgUq\",\"heartbeatRequestParams\":{\"heartbeatChecks\":[\"HEARTBEAT_CHECK_TYPE_LIVE_STREAM_STATUS\"]}}";

                var content = new System.Net.Http.StringContent(data, Encoding.UTF8, "application/json");
                HttpClient client = new HttpClient();
                if (myProxy.Address != null)
                {
                    var httpClientHandler = new HttpClientHandler
                    {
                        Proxy = myProxy,
                    };
                    client = new HttpClient(httpClientHandler, true);
                }
                var postRequest = new HttpRequestMessage(HttpMethod.Post, postUrl)
                {
                    Content = content
                };

                var postResponse = await client.SendAsync(postRequest);
                var responseString = await postResponse.Content.ReadAsStringAsync();

                HeartBeatInfo hearthBeatInfo = JsonConvert.DeserializeObject<HeartBeatInfo>(responseString);
                int.TryParse(hearthBeatInfo.pollDelayMs, out int delay);
                Thread.Sleep(delay);
            }
        }