rdavydov / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.1k stars 325 forks source link

login required #31

Closed Twi5TeD closed 1 year ago

Twi5TeD commented 1 year ago

03/11/22 20:51:52 - INFO - TwitchChannelPointsMiner.classes.TwitchLogin - [login_flow]: You'll have to login to Twitch! 03/11/22 20:51:52 - DEBUG - urllib3.connectionpool - [_new_conn]: Starting new HTTPS connection (1): passport.twitch.tv:443 03/11/22 20:51:53 - DEBUG - urllib3.connectionpool - [_make_request]: https://passport.twitch.tv:443 "POST /protected_login HTTP/1.1" 400 135 03/11/22 20:51:53 - INFO - TwitchChannelPointsMiner.classes.TwitchLogin - [login_flow]: Console login unavailable (CAPTCHA solving required).

latest update and name and pass is in the run.py but no screen show to add my captcha

rdavydov commented 1 year ago
  1. What are your specs? Do you have Google Chrome installed?
  2. Set
    logger_settings=LoggerSettings(
    save=True,
    console_level=logging.INFO,
    file_level=logging.DEBUG,
    less=True,

    in your runner script (run.py).

  3. Post the contents of the log file (logs\username.log) to https://gist.github.com/ and leave a link here.
  4. And create another gist with your console output, just in case. Paste a link here as well.
PingkeuKeobi commented 1 year ago

Do you have google chrome installed, you MUST have it installed.

Twi5TeD commented 1 year ago

yes i do Version 107.0.5304.88 (Official Build) (64-bit)

and this is my file

enable_analytics=False,                   
logger_settings=LoggerSettings(
    save=True,                             
    console_level=logging.INFO,        
    console_username=False,      
    file_level=logging.DEBUG,              
    emoji=True,                         
    less=True,    
rdavydov commented 1 year ago

the console closes straight away so cant copy the output

This means you're running the script just by double-clicking it or you're opening it straight from the file explorer. Am I right? If yes, please open a new console window, cd to the directory and run the script from this console window. This way it should not close and you can get the full console output.

rdavydov commented 1 year ago

And you can also do py run.py > output.txt. This will save the output to a txt file.

Twi5TeD commented 1 year ago

fixed the issue restarting pc seemed to fix it

Somebodyisnobody commented 1 year ago

Same issue here:

C:\Program Files\Python36\lib\site-packages\OpenSSL\crypto.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography import utils, x509
11/11/22 21:41:16 - DEBUG - [_new_conn]: Starting new HTTPS connection (1): raw.githubusercontent.com:443
11/11/22 21:41:16 - DEBUG - [_make_request]: https://raw.githubusercontent.com:443 "GET /rdavydov/Twitch-Channel-Points-Miner-v2/master/TwitchChannelPointsMiner/__init__.py HTTP/1.1" 200 125
11/11/22 21:41:16 - INFO - [run]: 💣  Start session: '4dd35b39-b98e-4171-93a6-4b6e3d0c75b6'
11/11/22 21:41:16 - INFO - [login_flow]: You'll have to login to Twitch!
11/11/22 21:41:16 - DEBUG - [_new_conn]: Starting new HTTPS connection (1): passport.twitch.tv:443
11/11/22 21:41:16 - DEBUG - [_make_request]: https://passport.twitch.tv:443 "POST /protected_login HTTP/1.1" 400 135
11/11/22 21:41:16 - INFO - [login_flow]: Console login unavailable (CAPTCHA solving required).
Traceback (most recent call last):
  File "run.py", line 98, in <module>
    followers_order=FollowersOrder.ASC  # Sort the followers list by follow date. ASC or DESC
  File "D:\Downloads\Tempe\twitch-mining\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 162, in mine
    self.run(streamers=streamers, blacklist=blacklist, followers=followers)
  File "D:\Downloads\Tempe\twitch-mining\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 180, in run
    self.twitch.login()
  File "D:\Downloads\Tempe\twitch-mining\TwitchChannelPointsMiner\classes\Twitch.py", line 87, in login
    if self.twitch_login.login_flow():
  File "D:\Downloads\Tempe\twitch-mining\TwitchChannelPointsMiner\classes\TwitchLogin.py", line 155, in login_flow
    self.set_token(self.login_flow_backup(password))
  File "D:\Downloads\Tempe\twitch-mining\TwitchChannelPointsMiner\classes\TwitchLogin.py", line 170, in login_flow_backup
    from undetected_chromedriver import ChromeOptions
  File "C:\Program Files\Python36\lib\site-packages\undetected_chromedriver\__init__.py", line 31, in <module>
    from . import v2
  File "C:\Program Files\Python36\lib\site-packages\undetected_chromedriver\v2.py", line 4
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
rdavydov commented 1 year ago

@Somebodyisnobody Not the same.

The answer most likely lays in the first line of your log.

Python 3.6 is no longer supported by the Python core team

Update Python to the latest version and try again.

Somebodyisnobody commented 1 year ago

Ooomph i just installed 3.11 but there was an old path variable and the first python.exe was found. I hate working with consoles... Works with 3.11