Merhaba arkadaşlar iyi forumlar elimde yaklaşık 50 tane youtube bot hesap var fakat bunları hangi programla bot basacağımı bilmiyorum teker teker girip abone olamam hedef kanala bana otomatik abone olan bir program, kod önerirmisiniz?
Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
# Kullanıcı adı ve şifreler
accounts = [
{"email": "[email protected]", "password": "your_password1"},
{"email": "[email protected]", "password": "your_password2"},
# Diğer hesapları ekleyin
]
# Abone olunacak kanal URL'si
channel_url = "https://www.youtube.com/channel/UCXXXXXXX"
# WebDriver'ın yolu
webdriver_path = "/path/to/chromedriver"
# WebDriver başlatma
options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")
service = Service(webdriver_path)
driver = webdriver.Chrome(service=service, options=options)
def login_and_subscribe(email, password):
driver.get("https://accounts.google.com/signin")
# E-posta girme
email_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "identifierId")))
email_input.send_keys(email)
driver.find_element(By.ID, "identifierNext").click()
# Şifre girme
password_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.NAME, "password")))
password_input.send_keys(password)
driver.find_element(By.ID, "passwordNext").click()
# YouTube'a gitme ve kanala abone olma
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//ytd-topbar-logo-renderer[@id='logo']")))
driver.get(channel_url)
# Abone ol butonuna tıklama
subscribe_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//yt-formatted-string[text()='Abone Ol']")))
subscribe_button.click()
time.sleep(2) # İşlemlerin gerçekleşmesi için bekleme
# Her hesap için işlemleri gerçekleştirme
for account in accounts:
login_and_subscribe(account["email"], account["password"])
driver.delete_all_cookies() # Çıkış yapma ve bir sonraki hesap için temiz başlangıç
driver.quit()
birde her hesapta 2-3 tane kanal var onları nasıl ekleyeceğimKod:from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.chrome.service import Service from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time # Kullanıcı adı ve şifreler accounts = [ {"email": "[email protected]", "password": "your_password1"}, {"email": "[email protected]", "password": "your_password2"}, # Diğer hesapları ekleyin ] # Abone olunacak kanal URL'si channel_url = "https://www.youtube.com/channel/UCXXXXXXX" # WebDriver'ın yolu webdriver_path = "/path/to/chromedriver" # WebDriver başlatma options = webdriver.ChromeOptions() options.add_argument("--start-maximized") service = Service(webdriver_path) driver = webdriver.Chrome(service=service, options=options) def login_and_subscribe(email, password): driver.get("https://accounts.google.com/signin") # E-posta girme email_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "identifierId"))) email_input.send_keys(email) driver.find_element(By.ID, "identifierNext").click() # Şifre girme password_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.NAME, "password"))) password_input.send_keys(password) driver.find_element(By.ID, "passwordNext").click() # YouTube'a gitme ve kanala abone olma WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//ytd-topbar-logo-renderer[@id='logo']"))) driver.get(channel_url) # Abone ol butonuna tıklama subscribe_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//yt-formatted-string[text()='Abone Ol']"))) subscribe_button.click() time.sleep(2) # İşlemlerin gerçekleşmesi için bekleme # Her hesap için işlemleri gerçekleştirme for account in accounts: login_and_subscribe(account["email"], account["password"]) driver.delete_all_cookies() # Çıkış yapma ve bir sonraki hesap için temiz başlangıç driver.quit()
Elindeki bot hesapları ve abone olunacak profil linkini kodlara ekle. sorun olursa ulaşabilirsin
Python kodubu python mı java mı
Bir süre suspend ya da ipban hesapları kapatma gibi sorunlar yaşatıcaktır. YouTube nasıl işliyor bilmiyorum fakat İnstagram kısmında bu şekilde oluyor. Seleniumdan kaynaklı bu aradakoddan dolayı değil.Kod:from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.chrome.service import Service from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import time # Kullanıcı adı ve şifreler accounts = [ {"email": "[email protected]", "password": "your_password1"}, {"email": "[email protected]", "password": "your_password2"}, # Diğer hesapları ekleyin ] # Abone olunacak kanal URL'si channel_url = "https://www.youtube.com/channel/UCXXXXXXX" # WebDriver'ın yolu webdriver_path = "/path/to/chromedriver" # WebDriver başlatma options = webdriver.ChromeOptions() options.add_argument("--start-maximized") service = Service(webdriver_path) driver = webdriver.Chrome(service=service, options=options) def login_and_subscribe(email, password): driver.get("https://accounts.google.com/signin") # E-posta girme email_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "identifierId"))) email_input.send_keys(email) driver.find_element(By.ID, "identifierNext").click() # Şifre girme password_input = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.NAME, "password"))) password_input.send_keys(password) driver.find_element(By.ID, "passwordNext").click() # YouTube'a gitme ve kanala abone olma WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.XPATH, "//ytd-topbar-logo-renderer[@id='logo']"))) driver.get(channel_url) # Abone ol butonuna tıklama subscribe_button = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH, "//yt-formatted-string[text()='Abone Ol']"))) subscribe_button.click() time.sleep(2) # İşlemlerin gerçekleşmesi için bekleme # Her hesap için işlemleri gerçekleştirme for account in accounts: login_and_subscribe(account["email"], account["password"]) driver.delete_all_cookies() # Çıkış yapma ve bir sonraki hesap için temiz başlangıç driver.quit()
Elindeki bot hesapları ve abone olunacak profil linkini kodlara ekle. sorun olursa ulaşabilirsin