Code Monkey home page Code Monkey logo

yt_views_increaser_bot's Introduction

YTViewer

YTViewer is simple YouTube views bot

Prerequisites

Windows

Install Google Chrome Browser: https://www.google.com/chrome/

Download ChromeDriver and move the executable to folder in your PATH: http://chromedriver.chromium.org/downloads

Or

Install Mozilla Firefox Browser: https://www.mozilla.org/en-US/firefox/new/

Download geckodriver, unzip and move the executable to folder in your PATH: https://github.com/mozilla/geckodriver/releases

Installation

Windows

Install Python: https://www.python.org/downloads/

git clone "https://github.com/DeBos99/ytviewer.git"
cd ytviewer
install.bat
cd ..

Linux & MacOS

git clone "https://github.com/DeBos99/ytviewer.git"
cd ytviewer
sudo chmod +x install.sh
sudo ./install.sh
cd ..

Usage

Show help:

$ python main.py --help

Set url of the video to URL:

$ python main.py --url URL

Set number of the threads to T (default: 15):

$ python main.py --url URL --threads T

Set the duration of video in seconds to S (default: 300 seconds (5 minutes)):

$ python main.py --url URL --duration S

Set the path of proxies list to PATH (default: proxies loaded from web):

$ python main.py --url URL --proxies PATH

Set the user agent for the driver to AGENT (default: randomly generated user agent):

$ python main.py --url URL --user-agent AGENT

Set the path of the list of the user agents for the driver to PATH:

$ python main.py --url URL --user-agents PATH

Set the driver for the bot to chrome:

$ python main.py --url URL --driver chrome

Set the driver for the bot to firefox:

$ python main.py --url URL --driver firefox

TODO

  • Add autamatic video duration.
  • Add support for multiple urls.

Authors

  • Michał Wróblewski - Main Developer - DeBos99

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

yt_views_increaser_bot's People

Contributors

hackeruniverse avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

abd-4fg lousixix

yt_views_increaser_bot's Issues

OSError: Tunnel connection failed: 403 Forbidden

Hi, I'm not sure how to fix this. Is it something on my system (MacOs) or elsewhere?

Command

python3 main.py --url https://youtu.be/<some_vid_id> --duration 82 --user-agent chromium --driver chrome

Error 1

Traceback (most recent call last):
  File "/Users/cdukes/Library/Python/3.7/lib/python/site-packages/seleniumwire/proxy/proxy2.py", line 90, in proxy_request
    conn.request(self.command, path, req_body, dict(req.headers))
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/cdukes/Library/Python/3.7/lib/python/site-packages/seleniumwire/proxy/proxy2.py", line 367, in connect
    super().connect()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1384, in connect
    super().connect()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 932, in connect
    self._tunnel()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 911, in _tunnel
    message.strip()))
OSError: Tunnel connection failed: 462 status code 462

Error 2

On the second run (same command-line options), I got:

Error making request
Traceback (most recent call last):
  File "/Users/redacted/Library/Python/3.7/lib/python/site-packages/seleniumwire/proxy/proxy2.py", line 90, in proxy_request
    conn.request(self.command, path, req_body, dict(req.headers))
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Users/redacted/Library/Python/3.7/lib/python/site-packages/seleniumwire/proxy/proxy2.py", line 367, in connect
    super().connect()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 1384, in connect
    super().connect()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 932, in connect
    self._tunnel()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/http/client.py", line 911, in _tunnel
    message.strip()))
OSError: Tunnel connection failed: 403 Forbidden

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.