Simple YouTube View Bot in Python for beginners #coding #python #development

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

import webbrowser
import time

Url = input("Url : ")
Duration = int(input("enter duration : "))
Times = int(input ("How many views : "))

for x in range(Times):
webbrowser.open_new(Url)
time.sleep(Duration)

Darks
Автор

Fake 😂😂 Jo main Past tha Ushko To Bahut Fast kar diya At the end

himanshusworld
Автор

I remade this WITH a gui i dont use this, i just scrolled on this and decided to test it "crashed my pc"

import webbrowser
import time
import tkinter as tk
from threading import Thread

# Function to repeatedly open the URL
def start_views():
global running
try:
url = url_entry.get()
duration = int(duration_entry.get())
times = int(times_entry.get())
except ValueError:
valid numbers!")
return

if url == "":
status_label.config(text="URL cannot be empty!")
return

running = True
for x in range(times):
if not running:
break
webbrowser.open_new(url)
time.sleep(duration)
completed!")

# Function to toggle start/stop
def toggle_process():
global running
if == 'On':

started...")

else:

running = False
stopped.")

# GUI setup
root = tk.Tk()
root.title("View Bot")
root.geometry("300x200")

# URL Input
tk.Label(root, text="URL:").pack()
url_entry = tk.Entry(root, width=40)
url_entry.pack()

# Duration Input
tk.Label(root, text="Duration (seconds):").pack()
duration_entry = tk.Entry(root, width=40)
duration_entry.pack()

# Times Input
tk.Label(root, text="Number of Views:").pack()
times_entry = tk.Entry(root, width=40)
times_entry.pack()

# Toggle Button
toggle_button = tk.Button(root, text="On", command=toggle_process)
toggle_button.pack(pady=10)

# Status Label
status_label = tk.Label(root, text="")
status_label.pack()

# Main loop
running = False
root.mainloop()

BeefyRBX