Question
Need Python Help With DM bot for IG. I am stuck on this, I am trying to spintax messages to have many different possibilities so
Need Python Help With DM bot for IG.
I am stuck on this, I am trying to spintax messages to have many different possibilities so I dont get detected by IG.
______
from igdm import igdm import spintax
with open(r'users.txt', 'r') as f: users = [line.strip() for line in f]
print(users) print(spintax.spin("{Simple|Easy} {example|demonstration}"))
# Auto login insta = igdm(username='example', password='example', headless=False)
for user in users: # Send message insta.sendMessage(user=user, message= r""" {Hello|Hi|Hey}{,|} I{'| a}m \{0\}{,|!|!!!} I {{come|am} {here|on this earth}|{came|travelled} {here|to this place}} to {protect|save} {humanity|the world|humans|civilization} {and {destroy|kill|eradicate|remove}|by {destroy|kill|eradicat|remov}ing} all {evil|badness|hate}. """)
side note: the DM above is just an example I am using for now until I get it right
_______
from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager as CM from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.action_chains import ActionChains from random import randint, uniform from time import time, sleep import logging import sqlite3 import spintax import re import sys import random
DEFAULT_IMPLICIT_WAIT = 30
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started