KevinBytesTheDust / CVAmp

Send live viewers to Twitch, youtube and kick with this viewer bot software. The tool offers a user-friendly graphical interface. This program requires HTTP proxies.
GNU Affero General Public License v3.0
342 stars 92 forks source link

Proxy List User/Pass #12

Closed SamirNazim closed 2 years ago

SamirNazim commented 2 years ago

Where did you get access to Twitch user/pass to fill the proxy list? Am I missing something here? The instances keep dying otherwise. And if Headless is False, it brings me to a login page.

jlplenio commented 2 years ago

These are two different things:

You should only see the login page briefly, because after that, it will redirect to the desired channel page. If the instances are still dying, please post the logs from the ctvb.log, and I'll take a look.

SamirNazim commented 2 years ago

I updated the proxies list but unless I add ":user:pw" at the end of it - the GUI states I have 0 proxies available. And if I don't add user:pw and run with headless as false, I noticed it simply opens up a browser to Twitch login and stops there.

I can post a log for you but I was wondering if you have Discord as well?

Edit: I'm running this in VS Code if that makes a difference

SamirNazim commented 2 years ago
2022-05-16 12:42:13,847;INFO;MainThread;spawner;__init__; Manager start
2022-05-16 12:42:17,275;INFO;Thread-2 (spawn_instance_thread);spawner;spawn_instance_thread; <Thread(Thread-2 (spawn_instance_thread), started 32492)> starting instance no 1
2022-05-16 12:42:19,289;INFO;Thread-3 (spawn_instance_thread);spawner;spawn_instance_thread; <Thread(Thread-3 (spawn_instance_thread), started 16516)> starting instance no 2
2022-05-16 12:42:21,289;INFO;Thread-4 (spawn_instance_thread);spawner;spawn_instance_thread; <Thread(Thread-4 (spawn_instance_thread), started 34492)> starting instance no 3
2022-05-16 12:42:40,229;ERROR;Thread-4 (spawn_instance_thread);spawner;start; Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
Traceback (most recent call last):
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 175, in start
    self.spawn_page()
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 245, in spawn_page
    self.page.click("button[data-a-target=consent-banner-accept]", timeout=15000)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api\_generated.py", line 8106, in click
    self._sync(
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_page.py", line 669, in click
    return await self._main_frame.click(**locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_frame.py", line 460, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
2022-05-16 12:42:40,243;ERROR;Thread-2 (spawn_instance_thread);spawner;start; Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
Traceback (most recent call last):
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 175, in start
    self.spawn_page()
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 245, in spawn_page
    self.page.click("button[data-a-target=consent-banner-accept]", timeout=15000)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api\_generated.py", line 8106, in click
    self._sync(
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_page.py", line 669, in click
    return await self._main_frame.click(**locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_frame.py", line 460, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
2022-05-16 12:42:40,244;ERROR;Thread-3 (spawn_instance_thread);spawner;start; Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
Traceback (most recent call last):
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 175, in start
    self.spawn_page()
  File "c:\Users\samir\Desktop\crude-twitch-viewer-bot-master\crude-twitch-viewer-bot-master\spawner.py", line 245, in spawn_page
    self.page.click("button[data-a-target=consent-banner-accept]", timeout=15000)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api\_generated.py", line 8106, in click
    self._sync(
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_sync_base.py", line 88, in _sync
    return task.result()
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_page.py", line 669, in click
    return await self._main_frame.click(**locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_frame.py", line 460, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 39, in send
    return await self.inner_send(method, params, False)
  File "C:\Users\samir\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 63, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for selector "button[data-a-target=consent-banner-accept]"
============================================================
jlplenio commented 2 years ago

Thank you for your log. The program looks for the cookie consent/acceptance banner, does not find it and crashes — bad design on my part. As you reported, you reach the login page. But somehow on your end/connection, the cookie banner is not shown. It should work without this check. You can try it yourself by commenting out this line: https://github.com/jlplenio/crude-twitch-viewer-bot/blob/f2a77ac130aab01b3d8c8e148021a8e9421b3aa7/spawner.py#L245

I'll make a change in the next release so that it continues even without finding the banner, but logs a warning.

SamirNazim commented 2 years ago

Great, so it is now running. The only issue is that the views do not increase. This could be a proxy issue? I've been trying numerous ones. Is there a way to check if the proxies are good?

I'm using https://hidemy.name/en/proxy-checker/ and only loading in working proxies but still it won't increase channel views.

Proxies still show 0 even when I load the list btw.

jlplenio commented 2 years ago

Great to hear, that it works for you. You can use public proxies. But since they are public, almost all of them will be publicly banned. The proxies counter in the GUI should update for you. If not, then the program does not detect/read them properly. If your proxies have no authentication, i.e., no username and no password, you must use the following format in the proxy_list.txt. It is important, that every line contains 3 colons, e.g.:

132.12.12.30:8080::
132.122.112.3:8080::
232.1.152.3:8080::

I cannot help you further with public proxies. They are too troublesome.