|
import gradio as gr |
|
from instapy import InstaPy |
|
import time |
|
import subprocess |
|
from clarifai.rest import ClarifaiApp |
|
|
|
|
|
|
|
def trigger_instagram_bot(): |
|
|
|
|
|
session = InstaPy(username="FARIDDD1230909", password="f1309D1309") |
|
|
|
|
|
|
|
session.set_do_story(enabled=True, percentage=100) |
|
session.set_do_comment(enabled=True, percentage=100) |
|
|
|
session.set_comments( |
|
["Nice!", "نام من فرید است و سلام به شما امیدوارم موفق باشید", "Amazing!", "🔥", "Hello My Name Is Farid :)...", "کارت عالی بود", "تو بهترینی", "اطلاعات شگفت انگیز"]) |
|
|
|
|
|
session.login() |
|
|
|
while True: |
|
|
|
session.like_stories(amount=10) |
|
|
|
|
|
session.reply_to_stories(["👍", "🔥"]) |
|
|
|
|
|
|
|
session.follow_user_followers( |
|
["demon_bakemon", "asma__a1997"], amount=5, randomize=True) |
|
|
|
|
|
time.sleep(60) |
|
|
|
|
|
return "Instagram bot started! It will like stories, leave comments, gain followers, and run every minute." |
|
|
|
|
|
iface = gr.Interface( |
|
fn=trigger_instagram_bot, |
|
inputs=None, |
|
outputs=gr.outputs.Textbox(label="Bot Status"), |
|
title="Instagram Bot: Auto Like, Comment, Follow & Schedule", |
|
description="Click the button to start the extended bot!", |
|
) |
|
|
|
iface.launch() |
|
|