Hack Forums
[Python] Trying to get a twitch viewbot working - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Trying to get a twitch viewbot working (/showthread.php?tid=6067069)

Pages: Pages 1 2


Trying to get a twitch viewbot working - pythonnoob2 - Apr 14, 2020

Hello Everyone,

I am trying to get an old twitch viewbot working again. I've gone through and made some edits to code.  Mostly removing livestreamer.exe and adding in streamlink.exe, it's predecessor.   The bot does send head requests, but no views are showing up in the channel.  Can anyone assist?

[paste]pastebin.com/n0sZQefx[/paste]


Thanks!


RE: Trying to get a twitch viewbot working - CDKEYS4BTC - Apr 15, 2020

I would recommend you to use selenium instead of requests. You will be seen more like real human not a bot.


RE: Trying to get a twitch viewbot working - pythonnoob2 - Apr 15, 2020

Ah ok, thank you for suggestion. Is that as simple as installing selenium and then doing import selenium? or is there further editing needed?


RE: Trying to get a twitch viewbot working - Flash7475 - Apr 15, 2020

(Apr 15, 2020 11:42 AM)pythonnoob2 Wrote:  Ah ok, thank you for suggestion. Is that as simple as installing selenium and then doing import selenium? or is there further editing needed?

That would be a start but looking at your code, you'll need to re write some of it but it shouldn't be a huge task since selenium isn't hard to figure out and I find it a little easier than requests to learn.

Here is the documentation:
https://selenium-python.readthedocs.io/


RE: Trying to get a twitch viewbot working - CDKEYS4BTC - Apr 15, 2020

I guess that some further edits would be needed. Hit me up on discord, I can help you with this one.
JOEY3#1201


RE: Trying to get a twitch viewbot working - pythonnoob2 - Apr 15, 2020

(Apr 15, 2020 11:50 AM)Flash7475 Wrote:  That would be a start but looking at your code, you'll need to re write some of it but it shouldn't be a huge task since selenium isn't hard to figure out and I find it a little easier than requests to learn.

Here is the documentation:

Thank you!! I will review this now.

(Apr 15, 2020 11:51 AM)CDKEYS4BTC Wrote:  I guess that some further edits would be needed. Hit me up on discord, I can help you with this one.
JOEY3#1201

Adding you now!


RE: Trying to get a twitch viewbot working - Lrrr - Apr 15, 2020

I smell valorant code idling from a mile away


RE: Trying to get a twitch viewbot working - lockhead - Apr 16, 2020

(Apr 15, 2020 11:50 AM)Flash7475 Wrote:  That would be a start but looking at your code, you'll need to re write some of it but it shouldn't be a huge task since selenium isn't hard to figure out and I find it a little easier than requests to learn.

Here is the documentation:
https://selenium-python.readthedocs.io/

The only problem with selenium is that it takes up massive amounts of ressources compared to requests.


RE: Trying to get a twitch viewbot working - pythonnoob2 - Apr 16, 2020

(Apr 15, 2020 04:52 PM)Lrrr Wrote:  I smell valorant code idling from a mile away

Games trash... imo.

(Apr 16, 2020 07:16 AM)lockhead Wrote:  The only problem with selenium is that it takes up massive amounts of ressources compared to requests.


I've been seeing that. We have the code semi working, but it eats up alot of resources. Would requests still work?


RE: Trying to get a twitch viewbot working - longerestcat - May 1, 2020

any luck on this project? been looking for a stable viewbot that works with proxy list for a long time now


RE: Trying to get a twitch viewbot working - ihatevim - May 1, 2020

(Apr 16, 2020 09:22 AM)pythonnoob2 Wrote:  Games trash... imo.



I've been seeing that.  We have the code semi working, but it eats up alot of resources.  Would requests still work?

Late response, but since the thread is up anyways... You could use requests and randomize header data. Requests has the tools necessary through headers and socks to forge "realistic-ish" identities. Selenium is not made for resource optimization.


RE: Trying to get a twitch viewbot working - pythonnoob2 - May 2, 2020

(Apr 15, 2020 11:50 AM)Flash7475 Wrote:  That would be a start but looking at your code, you'll need to re write some of it but it shouldn't be a huge task since selenium isn't hard to figure out and I find it a little easier than requests to learn.

Here is the documentation:
https://selenium-python.readthedocs.io/

(May 1, 2020 06:37 PM)ihatevim Wrote:  Late response, but since the thread is up anyways... You could use requests and randomize header data. Requests has the tools necessary through headers and socks to forge "realistic-ish" identities. Selenium is not made for resource optimization.

Can I share some code with you? In theory, it should work. It's an old twitch bot that I updated with streamlink, opposed to livestreamer. It utilizes requests but I'm not sure I have the header data randomized. As my name states, I am a noob lol


RE: Trying to get a twitch viewbot working - ihatevim - May 4, 2020

(May 2, 2020 12:12 PM)pythonnoob2 Wrote:  Can I share some code with you?  In theory, it should work.  It's an old twitch bot that I updated with streamlink, opposed to livestreamer.  It utilizes requests but I'm not sure I have the header data randomized.  As my name states, I am a noob lol

Feel free to use the code tags and post it in the thread or message me directly.


RE: Trying to get a twitch viewbot working - pythonnoob2 - Jun 15, 2020

Still looking for help on this if anyone can.


RE: Trying to get a twitch viewbot working - pythonnoob2 - Jun 30, 2020

Still looking if anyone is willing to assist!