leandrovieiraa / ytubebot

Simple bot that was development in python 3.7, that automatically watch youtube videos. It can be used to give more views in your channel helping in the spread and increase the followers because your videos begin to gain new positions in research mechanics.
52 stars 24 forks source link

HELP #1

Closed lojuhumix closed 5 years ago

lojuhumix commented 5 years ago

You could use a proxy ?

leandrovieiraa commented 5 years ago

Yes, you can use proxy on selenium, like:

# Load proxy option
from selenium.webdriver.common.proxy import Proxy, ProxyType

# Configure Proxy Option
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL

# Proxy IP & Port
prox.http_proxy = “0.0.0.0:00000”
prox.socks_proxy = “0.0.0.0:00000”
prox.ssl_proxy = “0.0.0.0:00000”

# Configure capabilities 
capabilities = webdriver.DesiredCapabilities.CHROME
prox.add_to_capabilities(capabilities)

# Configure ChromeOptions
driver = webdriver.Chrome(executable_path='./driver/chromedriver.exe', desired_capabilities=capabilities)

# Verify proxy ip
driver.get("http://...")