diff --git a/PythonViewBot/YoutubeViewbot.py b/PythonViewBot/YoutubeViewbot.py index 5a898dc..3bc58d7 100644 --- a/PythonViewBot/YoutubeViewbot.py +++ b/PythonViewBot/YoutubeViewbot.py @@ -10,22 +10,22 @@ #application def window(): def runBot(): - #time to refresh page (seconds) + #time to refresh page (1) Timer = int(timeInput.text()) #youtube link - link = linkInput.text() + link = linkInput.text(https://www.youtube.com/watch?v=Tt2gFMNhyCM) #number of views - views = 1000 + views = 100000 driver = webdriver.Chrome('webdrivers\chromedriver.exe') driver.get(link) - for i in range(views): - time.sleep(Timer) - driver.refresh() + for i in range(10000): + time.sleep(1) + driver.refresh(1) #------WINDOW------------ app = QApplication(sys.argv) @@ -34,14 +34,14 @@ def runBot(): win.setWindowTitle("YouTube ViewBot") linkLabel = QtWidgets.QLabel(win) - linkLabel.setText("Video Link") + linkLabel.setText("https://www.youtube.com/watch?v=Tt2gFMNhyCM") linkLabel.move(15, 20) linkInput = QtWidgets.QLineEdit(win) linkInput.setGeometry(110, 10, 191, 20) linkInput.move(100, 25) timeLabel = QtWidgets.QLabel(win) - timeLabel.setText("WatchTime(seconds)") + timeLabel.setText("WatchTime(30)") timeLabel.move(15, 45) timeInput = QtWidgets.QLineEdit(win) timeInput.setGeometry(40, 10, 40, 20)