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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!