Twitch Viewbot C#

Posts 112 of 12 · Page 1 of 1
Twitch Viewbot C#
I know that this concept is a relative target for hate, but I would like to seek help as my current code (Visual Studio C#) is connecting and yet can't seem to add views.

CODE:
using System;
using System.Net;
using System****; <-- Won't display . I O
using System.Threading;
using System.Collections.Generic;

namespace ConsoleApplication3
{
class Program
{
public static List<int> skip = new List<int>();
static void Main(string[] args)
{
while (true)
{
int counter = 1;
string line;

// Read the file and display it line by line.
String ip = "1";
int port;
System****.StreamReader file = new System****.StreamReader("c:\\users\\emmett\\deskto p\\proxies.txt");
while ((line = file.ReadLine()) != null)
{
String[] parts = line.Split(':');
int i = 1;
foreach(string s in parts)
{
if (i == 1)
{
ip = s;
i = 2;
}
else
{
port = Convert.ToInt32(s);
connect(ip, port, counter);
}
}
counter++;
}
}
}

static void connect(String ip, int port, int n)
{
try
{
if (!skip.Contains(n))
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("<<TWITCH PAGE>>");
request.Timeout = 2000;
WebProxy myproxy = new WebProxy(ip, port);
myproxy.BypassProxyOnLocal = false;
request.Proxy = myproxy;
request.Method = "POST";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Console.WriteLine();
response.Close();
}
else
{
Console.WriteLine("BAD PROXY");
}
}
catch (ArgumentException e)
{
Console.WriteLine(n);
skip.Add(n);
}
catch (WebException e)
{
Console.WriteLine(n);
skip.Add(n);
}
catch (Exception e)
{
Console.WriteLine(n);
skip.Add(n);
}
Thread.Sleep(1);
}
}
}

I am currently able to connect but, once again, my view count is not changing and alone I fear that I have been unable to succeed. Any advice is much appreciated, thanks!

ON FILE FORMATTING --> You may have noticed a section of code which reads a file to gather a proxy ip and port and then sends the connect attempt using that information. The format for this, in the .txt file, is as follows:

IP:Port
IP:Port
REPEAT...

Essentially, this format is due to the proxy scraper I use. (gatherproxy.com) Please also note that the file reading is currently working fine. Only the system as a whole is failing.
Bump... anyone have advice?
BUMP PLZ PLZ I NEED HELP
I believe HTTP requests are not suitable in this way as you use it. Twitch counts the view count via JS heartbeats, one way would be using some sort of a webbrowser, or figuring out the URL's that the JS is sending requests to & then send them in the same way as Twitch does.
Like univex said they probably use a heartbeat(else they wouldn't know if you're still there). You could try Fiddler, it might show you what is being sent and where.
Thanks for the help will try some of that out

- - - Updated - - -

Do you have any advice on the format I would use in the heartbeat script?
Quote Originally Posted by DEC1DED View Post
Thanks for the help will try some of that out

- - - Updated - - -

Do you have any advice on the format I would use in the heartbeat script?
If you sniff the http requests you'll see the heartbeat, then figure out how the exact url is generated by checking the JS files it's generated in. Here is an example of a few requests
Code:
https://video-edge-7e8c1c.ord02.hls.ttvnw.net/v1/playlist/Co4CEWgjideRaFdQ002B-RNROhiMwgQLFgeS4KHLOPAxEJW-_qW0F-JuqXoGJ7fmR1_7DuKEs_rq55KRB8-yjUCc12KwJZYqPQEanlzRGPy-IYAo_2YDqt6swECBf00qyQwPwBSzkKMMvec7zRVDS1Otil-iSTFjc85So8gw4OigdYILtewDxfyqma767r5VNOh9qdau6U6UCs1B0aKwTKP3BCqqJ6nguHj96H8Gtxnk8YFYPMsws4yWqepeiNmpSgj_UC5y9h_TmuGYFGE2EQ30YJNtnQzcr_8xp4HyxGU2uol1N1mbA7kTiSnt7OL88W3wgB8C1nFCr3jmfz0ZNjJD7zdivF-pJfsauidu1QMLEhCr7Dpmn6zt8RvGMYrQWV8BGgxa2IUi5y-XEGaI3Ek.m3u8

https://video-edge-7e8c1c.ord02.hls.ttvnw.net/v1/playlist/Co4CEWgjideRaFdQ002B-RNROhiMwgQLFgeS4KHLOPAxEJW-_qW0F-JuqXoGJ7fmR1_7DuKEs_rq55KRB8-yjUCc12KwJZYqPQEanlzRGPy-IYAo_2YDqt6swECBf00qyQwPwBSzkKMMvec7zRVDS1Otil-iSTFjc85So8gw4OigdYILtewDxfyqma767r5VNOh9qdau6U6UCs1B0aKwTKP3BCqqJ6nguHj96H8Gtxnk8YFYPMsws4yWqepeiNmpSgj_UC5y9h_TmuGYFGE2EQ30YJNtnQzcr_8xp4HyxGU2uol1N1mbA7kTiSnt7OL88W3wgB8C1nFCr3jmfz0ZNjJD7zdivF-pJfsauidu1QMLEhCr7Dpmn6zt8RvGMYrQWV8BGgxa2IUi5y-XEGaI3Ek.m3u8
So would it be possible in C#? Also, sorry if it seems like I'm looking for spoon feeding here, I'm just new to web-based apps and I've only used c# with unity so... :/

- - - Updated - - -

Also I get that asking for code pisses people off but if you could help that would be great, thanks!

- - - Updated - - -

Also I get that asking for code pisses people off but if you could help that would be great, thanks!
What You should do is use the winforms web browser and text box then make the text box as a target then make a textbox again and then thats you ip the rest is up to you guys i completed this along time ago

- - - Updated - - -

What You should do is use the winforms web browser and text box then make the text box as a target then make a textbox again and then thats you ip the rest is up to you guys i completed this along time ago btw the one i made was for youtube
I Paid for a view bot and it didnt work so im pretty sure most viewbots wont work twitch put out a update to stop it
It won't work, they use heartbeat. As people have already said.
Posts 112 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?