MShawon / YouTube-Viewer

A multithreaded view bot for YouTube
MIT License
1.42k stars 744 forks source link

Any updates? @MShawon #596

Open taran0026 opened 9 months ago

taran0026 commented 9 months ago

Is there an existing issue for this?

I'm submitting a ...

Description

Just checking in if there's any progress? Thanks

Environment

NA

config.json

NA
techkick commented 9 months ago

please do something

SecHex commented 8 months ago

The tool is working fine, if you use a linux distribution and the right chrome version. (And paid proxies. lol.)

NuLL3rr0r commented 8 months ago

@SecHex I am on Linux and have the latest Chrome version installed:

$ /usr/bin/google-chrome-stable --version
Google Chrome 118.0.5993.70 

But, I get the following when I try to run it:

$ python youtube_viewer.py               

Yb  dP  dP"Yb  88   88 888888 88   88 88""Yb 888888
 YbdP  dP   Yb 88   88   88   88   88 88__dP 88__
  8P   Yb   dP Y8   8P   88   Y8   8P 88""Yb 88""
 dP     YbodP  `YbodP'   88   `YbodP' 88oodP 888888

                        Yb    dP 88 888888 Yb        dP 888888 88""Yb
                         Yb  dP  88 88__    Yb  db  dP  88__   88__dP
                          YbdP   88 88""     YbdPYbdP   88""   88"Yb
                           YP    88 888888    YP  YP    888888 88  Yb

           [ GitHub : https://github.com/MShawon/YouTube-Viewer ]

+-------------------------- Version: 1.8.0 --------------------------+

Getting Chrome Driver...
Traceback (most recent call last):
  File "/home/mamadou/dev/YouTube-Viewer/youtube_viewer.py", line 1003, in <module>
    osname, exe_name = download_driver(patched_drivers=patched_drivers)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mamadou/dev/YouTube-Viewer/youtubeviewer/download_driver.py", line 112, in download_driver
    uc.install()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 262, in install
    ChromeDriverManager(executable_path, target_version, *args, **kwargs).install()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 192, in install
    self.fetch_chromedriver()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 221, in fetch_chromedriver
    ver = self.get_release_version_number().vstring
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 211, in get_release_version_number
    return LooseVersion(urlopen(self.__class__.DL_BASE + path).read().decode())
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Any idea what might be wrong? Which version of chrome do I need?

I'd appreciate your response.

NuLL3rr0r commented 8 months ago

OK, I've figured it how to bypass that error. It seems the script downloads Chrome Driver from this URL and the latest version is 114.0.5735.90, so I created a Gentoo ebuild for that version of Chrome and now it runs. However, it did not add any view count. I am not yet sure which version works and does not get detected by YouTube.

SecHex commented 8 months ago

@SecHex I am on Linux and have the latest Chrome version installed:

$ /usr/bin/google-chrome-stable --version
Google Chrome 118.0.5993.70 

But, I get the following when I try to run it:

$ python youtube_viewer.py               

Yb  dP  dP"Yb  88   88 888888 88   88 88""Yb 888888
 YbdP  dP   Yb 88   88   88   88   88 88__dP 88__
  8P   Yb   dP Y8   8P   88   Y8   8P 88""Yb 88""
 dP     YbodP  `YbodP'   88   `YbodP' 88oodP 888888

                        Yb    dP 88 888888 Yb        dP 888888 88""Yb
                         Yb  dP  88 88__    Yb  db  dP  88__   88__dP
                          YbdP   88 88""     YbdPYbdP   88""   88"Yb
                           YP    88 888888    YP  YP    888888 88  Yb

           [ GitHub : https://github.com/MShawon/YouTube-Viewer ]

+-------------------------- Version: 1.8.0 --------------------------+

Getting Chrome Driver...
Traceback (most recent call last):
  File "/home/mamadou/dev/YouTube-Viewer/youtube_viewer.py", line 1003, in <module>
    osname, exe_name = download_driver(patched_drivers=patched_drivers)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mamadou/dev/YouTube-Viewer/youtubeviewer/download_driver.py", line 112, in download_driver
    uc.install()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 262, in install
    ChromeDriverManager(executable_path, target_version, *args, **kwargs).install()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 192, in install
    self.fetch_chromedriver()
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 221, in fetch_chromedriver
    ver = self.get_release_version_number().vstring
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mamadou/dev/YouTube-Viewer/venv/lib/python3.11/site-packages/undetected_chromedriver/_compat.py", line 211, in get_release_version_number
    return LooseVersion(urlopen(self.__class__.DL_BASE + path).read().decode())
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Any idea what might be wrong? Which version of chrome do I need?

I'd appreciate your response.

Version <100.x.x.x https://www.slimjet.com/chrome/google-chrome-old-version.php

NuLL3rr0r commented 8 months ago

Thank you for the link, I've downgraded to v90.0.4430.72, and still not working despite the fact that the script claims "View added: 3". The view count on YouTube won't bump.