Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add some details #2

Open
blucifer1337 opened this issue May 10, 2023 · 1 comment
Open

Please add some details #2

blucifer1337 opened this issue May 10, 2023 · 1 comment

Comments

@blucifer1337
Copy link

add some comments on code that
proxy location and example like ( proxy location here example: proxy/proxys.txt)

i tried to run but it just show video url on console and nothing works.

here is the full code
If i did any mistake please let me know.

import webbrowser
from selenium.webdriver.common.proxy import Proxy, ProxyType
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
import time
from threading import Thread, Barrier
import os

def load_proxies(PATH): # for loading the proxies
return open(PATH).read().split('\n')

def load_session(url,proxy): # manage each session
proxy,port = proxy.split(':')
profile = webdriver.Chrome('webdriver/chromedriver.exe')
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", proxy)
profile.set_preference("network.proxy.http_port", port)
profile.set_preference("network.proxy.ssl", proxy)
profile.set_preference("network.proxy.ssl_port", port)
profile.update_preferences()

inpt = input("https://www.youtube.com/watch?v=q9zcCivdqps")

inpt2 = float(input("3"))

inp4 = int(input("5"))

print("Working...")

print ('<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>')
print ('--------------------------------------------------------------')
print ('||||||||||||||||||||||||||BY Rae Armani||||||||||||||||||||||||||||')
print ('--------------------------------------------------------------')
print ('<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')

counter =0
while (counter != inp4):
webbrowser.open(inpt)
time.sleep(inpt2)
counter = counter +1

@Armanihub
Copy link
Owner

Armanihub commented May 11, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants