Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=92008
Postga havola
suhrob41k [1] [off]
python dasturini o'rnatib olamiz, python.org .
google orqali chromedriver dasturini yuklab olamiz https://chromedriver.chromium.org/
from selenium import webdriver
from time import sleep
kodni nusxalab yt.py fayliga keltirib olasiz, so'ng cmd orqali
py yt.py faylini ishga tushirasiz. Keyin sizda ko'rishlar soni va vaqti oshaveradi
google orqali chromedriver dasturini yuklab olamiz https://chromedriver.chromium.org/
from selenium import webdriver
from time import sleep
driver1 = webdriver.Chrome(executable_path="chromedriver") driver2 = webdriver.Chrome(executable_path="chromedriver") driver3 = webdriver.Chrome(executable_path="chromedriver") driver4 = webdriver.Chrome(executable_path="chromedriver") driver1.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver2.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver3.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver4.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver5.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver6.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver7.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") driver8.get("https://www.yоutube.com/watch?v=Ayp_H29q4-k") while True: driver1.refresh() driver2.refresh() driver3.refresh() driver4.refresh() driver5.refresh() driver6.refresh() driver7.refresh() driver8.refresh()
kodni nusxalab yt.py fayliga keltirib olasiz, so'ng cmd orqali
py yt.py faylini ishga tushirasiz. Keyin sizda ko'rishlar soni va vaqti oshaveradi