but3k4 / youtube-views Goto Github PK
View Code? Open in Web Editor NEWTool to increase YouTube views
License: BSD 3-Clause "New" or "Revised" License
Tool to increase YouTube views
License: BSD 3-Clause "New" or "Revised" License
Do you have discord, its still not working.
C:\Users\Tristyn\Desktop>youtube.py --visits 10 --url https://www.youtube.com/watch?v=H53BgIIaHd0&t=11s
Traceback (most recent call last):
File "C:\Users\Tristyn\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\Tristyn\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Tristyn\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Tristyn\Desktop\youtube.py", line 438, in
sys.exit(_main())
File "C:\Users\Tristyn\Desktop\youtube.py", line 433, in _main
youtube = YouTube(cli_args)
File "C:\Users\Tristyn\Desktop\youtube.py", line 52, in init
self.browser = webdriver.Chrome(options=self.options)
File "C:\Users\Tristyn\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Users\Tristyn\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
't' is not recognized as an internal or external command,
operable program or batch file.
Does it work for live videos?
Running the following command:
python3 bot.py --visits 5 --url https://www.youtube.com/watch?v=_4dfderXXx --verbose
I'm getting the following error:
video status: playing video duration time: 2:14:21:34 Traceback (most recent call last): File "bot.py", line 105, in <module> sys.exit(_main()) File "bot.py", line 99, in _main bot.run() File "bot.py", line 87, in run print('stopping video in %s seconds' % sleep_time) UnboundLocalError: local variable 'sleep_time' referenced before assignment
Seems to be complaining about the following section from the script:
if video_duration: print('video duration time:', video_duration) seconds = utils.to_seconds(duration=video_duration.split(':')) if seconds: sleep_time = randrange(seconds) if self.opts.verbose: print('video duration time in seconds:', seconds) print('stopping video in %s seconds' % sleep_time) time.sleep(sleep_time) youtube.disconnect() count += 1
Any ideas?
Please make it so we can use it on Mobile...
Traceback (most recent call last):
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/usr/lib/python3.9/subprocess.py", line 947, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1819, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/martin/youtube-views/bot.py", line 104, in
sys.exit(_main())
File "/home/martin/youtube-views/bot.py", line 98, in _main
bot.run()
File "/home/martin/youtube-views/bot.py", line 46, in run
youtube = YouTube(
File "/home/martin/youtube-views/modules/youtube.py", line 54, in init
self.browser = webdriver.Chrome(options=self.options)
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in init
self.service.start()
File "/home/martin/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
as per issue #4, i have updated my repo then retried but got the following.
...
video status: playing
video duration time: 3:04:49:42
Traceback (most recent call last):
File "bot.py", line 104, in
sys.exit(_main())
File "bot.py", line 98, in _main
bot.run()
File "bot.py", line 85, in run
sleep_time = randrange(seconds)
File "/usr/local/lib/python3.7/random.py", line 190, in randrange
raise ValueError("empty range for randrange()")
ValueError: empty range for randrange()
Notes:
ps -ef | grep chrome
shows 5 threads of google chrome runningI did youtube.py 10 https://www.youtube.com/watch?v=H53BgIIaHd0&t=23s then it said
C:\Users\Tristyn\Desktop>youtube.py 10 https://www.youtube.com/watch?v=H53BgIIaHd0&t=23s usage: youtube.py [--visits VISITS] [--url URL] [-v] [-h] youtube.py: error: unrecognized arguments: 10 https://www.youtube.com/watch?v=H53BgIIaHd0 't' is not recognized as an internal or external command, operable program or batch file.
python:3.7
win:10
im using tor over proxy 127.0.0.1:1080(shadowsocks ws)
after run :
python3 bot.py --visits 2 --url https://www.youtube.com/watch?v=XQb7BrTWtnI --proxy 127.0.0.1:9050 --enable-tor
give error :
[0208/193054.765:FATAL:content_main_runner_impl.cc(528)] --single-process is not supported in chrome multiple dll browser.
& after comment line 43 of file youtube.py getting :
DevTools listening on ws://127.0.0.1:61699/devtools/browser/e608d08f-fd40-44f9-8736-624b16440e93
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen
chunked=chunked,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 387, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\http\client.py", line 966, in send
self.connect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connection.py", line 184, in connect
conn = self._new_conn()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000002699301DF08>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=9050): Max retries exceeded with url: http://httpbin.org/ip (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002699301DF08>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bot.py", line 67, in
sys.exit(_main())
File "bot.py", line 63, in _main
bot.run()
File "bot.py", line 37, in run
ip_address = utils.get_ipaddr(proxy=self.opts.proxy)
File "C:\Users\Administrator\Desktop\youtube-views-master\utils.py", line 134, in get_ipaddr
response = requests.get(url, proxies=proxies)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=9050): Max retries exceeded with url: http://httpbin.org/ip (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002699301DF08>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')))
im using tor over proxy on port 1080
please help me
finest regards
Its is showing bot.py: error: --enable-tor requires --proxy
when used --enable-tor
python3 bot.py --visits 1 --url url --verbose
there was a problem loading this page. Retrying...
there was a problem loading this page. Retrying...
there was a problem loading this page. Retrying...
I am getting this error when I try to run. What should I do?
Traceback (most recent call last):
File "C:\Users\work\PY\youtube-views-master\bot.py", line 9, in
from modules.youtube import youtube
File "C:\Users\work\PY\youtube-views-master\modules\youtube.py", line 10, in
from selenium import webdriver
ImportError: No module named selenium
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.