Git Product home page Git Product logo

Comments (44)

Khanejo avatar Khanejo commented on June 3, 2024

Did you check the format of the accounts list that you fed to the bot was correct.
It should be:
username1 : password1
username2 : password2
.......so onn

I checked this bot about 1 month ago and it was working correctly. I'll recheck it, but if the problem is just in the number of accounts it is considering, then the problem might be in the account list. Also recheck if all username: password is correct, because I didn't add any exception handling, so your list should be completely made of working accounts.

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

` import time
from webbot import *
import pyautogui

print("Put list with accounts in same folder as this program and call it acc.txt")
username = input("Username: ")

a = open('acc.txt', 'r').readlines()
file = [s.rstrip()for s in a]
file.reverse()
for lines in file:
file = lines.split(":")

un = file[0]
pw = file[1]

for line in range(len(file)+1):
web = Browser()
web.go_to("https://www.instagram.com/accounts/login/")
time.sleep(0.5)
time.sleep(0.5)
web.type(un, into='Phone number, username, or email')
time.sleep(0.5)
time.sleep(0.5)
web.press(web.Key.TAB)
time.sleep(0.5)
time.sleep(0.5)
web.type(pw, into='Password')
web.press(web.Key.ENTER)

time.sleep(2.0)
time.sleep(0.5)
time.sleep(0.5)

web.go_to("https://www.instagram.com/%s/" % username)

time.sleep(1.5)
time.sleep(0.5)
time.sleep(0.5)

web.click(xpath='//*[@id="react-root"]/section/main/div/header/section/div[1]/div/button')

time.sleep(0.5)

web.click(text='Report User')

time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)

web.click(xpath='/html/body/div[4]/div/div/div/div[2]/div/div/div/div[3]/button[1]')

time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Close')
time.sleep(0.5)
time.sleep(0.5)   
time.sleep(0.5)
time.sleep(0.5)

pyautogui.keyDown('ctrl')
pyautogui.keyDown('w')
time.sleep(0.5)
pyautogui.keyUp('ctrl')
pyautogui.keyUp('w') `

yes , my account list is okay , i also had to change the report button couse it wasn't clicling maybe instagram updated it , idk , it just dont pick second account only the first one , thanks for the responde tho <3

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

Ok!! Give me a few hours, I'll crosscheck it

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

@Khanejo thanks

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

Try Instagram bot2.py( the one I just uploaded), it seems to parse file rightly

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

image

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

idk how to fix this one

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

@Khanejo anything u can do ? thanks for ur time

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

Bro when you change the above part:

change the account name/password parsing code to:

user = []
passw = []
for lines in file:
file = lines.split(":")

un = file[0]
pw = file[1]
user.append(un)
passw.append(pw)

for line in range(len(file)+1):
web = Browser()
web.go_to("https://www.instagram.com/accounts/login/")

web.type(user[line], into='Phone number, username, or email')
time.sleep(0.5)
web.press(web.Key.TAB)
time.sleep(0.5)
web.type(passw[line], into='Password')
web.press(web.Key.ENTER)

then, the parsing of accounts seems to be right on my device.

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

Bro when you change the above part:

change the account name/password parsing code to:

user = []
passw = []
for lines in file:
file = lines.split(":")

un = file[0]
pw = file[1]
user.append(un)
passw.append(pw)

for line in range(len(file)+1):
web = Browser()
web.go_to("https://www.instagram.com/accounts/login/")

web.type(user[line], into='Phone number, username, or email')
time.sleep(0.5)
web.press(web.Key.TAB)
time.sleep(0.5)
web.type(passw[line], into='Password')
web.press(web.Key.ENTER)

then, the parsing of accounts seems to be right on my device.

Is running this code giving the list out of index error

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

Did you tried the script instagram_report_bot2.py and then changing the report button change(that you told has been updated by insta)?

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

image

@Khanejo it works fine the first time , then when its time to load the next account it shows this

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

import time
from webbot import *
#import pyautogui

print("Put list with accounts in same folder as this prog••••••••••ram and call it acc.txt")
username = input("Username: ")

a = open('acc.txt', "r").readlines()
file = [s.rstrip()for s in a]
file.reverse()

user =[]
passw = []
for lines in file:
file = lines.split(":")

un = file[0]
pw = file[1]
user.append(un)
passw.append(pw)

for line in range(len(file)+1):
print(user[line])
print(passw[line])

I tried this test code and it is parsing the acc/pass correctly, try it on your list and see result??

from instagram-mass-reporter.

Khanejo avatar Khanejo commented on June 3, 2024

image

@Khanejo it works fine the first time , then when its time to load the next account it shows this

THis means your list user and passw has just 1 element

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

my account list is okay bro , stil not working , dont worry i will try to fix it myself , thanks for ur time and help <3

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

new_file=[]
for i in range(len(file)):
split=file[i].split(":")
new_file.append(split[0])
new_file.append(split[1])

user =[]
passw = []

for j in range(len(new_file)):
if (j%2)==0:
user.append(new_file[j])
else:
passw.append(new_file[j])

for line in range(len(file)+1):
print(user[line])
print(passw[line])

this works bro , thanks for ur time

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Can anyone help me with going through the whole process of downloading this? @Khanejo

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

you dont really need to download the script , just copy and paste it in a file called like , bot.py , install the requirements and thats it.

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

you dont really need to download the script , just copy and paste it in a file called like , bot.py , install the requirements and thats it.

I still don't quite understand the process. i've downloaded python, but when I run the command git in python, (after installing git) it gives me an error, like git doesn't exist. where do i run these commands from? help me out g

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

okay i managed to clone the website, now what? how do I edit the file to put in my username and password? do i need to download Rstudio or just download the zip and edit it in notepad?

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Traceback (most recent call last): File "C:\Users\rivka\Desktop\Instagram-mass-reporter-master\bot.py", line 2, i n <module> from webbot import * ModuleNotFoundError: No module named 'webbot'
How do i fix this

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

also, do i put the username i want to report in 'new=file' ?

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

Try
`
pip3 install pyautogui
pip3 install webbot

If this does not work just change it to "py -m pip install (module name)"
`

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Thanks! that worked. i got this new error lol, can you explain what to do with the whole 'acc.txt' thing?
in <module> a = open(acc_file, "r").readlines() FileNotFoundError: [Errno 2] No such file or directory: 'acc.txt'

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Do I need to copy the script you posted in notepad and call it acc.txt?

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

you need to create a new file in your directory called acc.txt and put your bot account as

username:password
username:password
username:password

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

like this?
Notepad capture

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

obviously I'm gonna fill it up, but like this?

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

Yes.

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

I have a different issue, it doesn't type the username into ' 'Phone number, username, or email' '
@Khanejo can you fix this?

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

I have a different issue, it doesn't type the username into ' 'Phone number, username, or email' '
@Khanejo can you fix this?

I tried changing the format of the username:password, but it still skips the username part. it types in the password but leaves the username open. @Khanejo any idea why?

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

web.type(user[line], into='Phone number, username, or email') IndexError: list index out of range

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

@Boryyy does this still work for you?

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

@eyal9 i dont use the code anymore , but try this , i dont know if it still works , i think you need to update xpath its not that hard you can learn it.

import time
from webbot import *
import pyautogui

print("-------------------------------------")
username = input("Username: ")

a = open('acc.txt', "r").readlines()
file = [s.rstrip()for s in a]
file.reverse()

new_file=[]
for i in range(len(file)):
split=file[i].split(":")
new_file.append(split[0])
new_file.append(split[1])

user =[]
passw = []

for j in range(len(new_file)):
if (j%2)==0:
user.append(new_file[j])
else:
passw.append(new_file[j])

for line in range(len(file)+1):
print(user[line])
print(passw[line])
web = Browser()
web.go_to("https://www.instagram.com/accounts/login/")
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
web.type(user[line], into='Phone number, username, or email')
time.sleep(0.5)
time.sleep(0.5)
web.press(web.Key.TAB)
time.sleep(0.5)
time.sleep(0.5)
web.type(passw[line], into='Password')
web.press(web.Key.ENTER)

time.sleep(2.0)
time.sleep(0.5)
time.sleep(0.5)

web.go_to("https://www.instagram.com/%s/" % username)
time.sleep(0.5)
time.sleep(1.5)

web.click(xpath='//*[@id="react-root"]/section/main/div/header/section/div[1]/div/button')
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Report User')
time.sleep(0.5)
time.sleep(0.5)

web.click(xpath='/html/body/div[4]/div/div/div/div[2]/div/div/div/div[3]/button[1]')
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Close')

time.sleep(0.5)
time.sleep(0.5)
web.click(xpath='/html/body/div[1]/section/nav/div[2]/div/div/div[3]/div/div[3]/a')

time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)

web.click(xpath='/html/body/div[1]/section/main/div/header/section/div[1]/div/button')
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Log Out')
time.sleep(0.5)
time.sleep(0.5)

pyautogui.keyDown('ctrl')
time.sleep(0.25)
pyautogui.keyDown('w')
time.sleep(0.5)
pyautogui.keyUp('ctrl')
pyautogui.keyUp('w')

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Know how to fix this? split=file[i].split(":") ^ IndentationError: expected an indented block

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

u need to find another bot i guess , or just need to update it

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

come on man dont give up on me

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

can u atleast teach me abit

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

its not that hard bro

a = open('acc.txt', "r").readlines()
file = [s.rstrip()for s in a]
file.reverse()

new_file=[]
for i in range(len(file)):
split=file[i].split(":")
new_file.append(split[0])
new_file.append(split[1])

user =[]
passw = []

for j in range(len(new_file)):
if (j%2)==0:
user.append(new_file[j])
else:
passw.append(new_file[j])

u have to fix the rest

from instagram-mass-reporter.

Boryyy avatar Boryyy commented on June 3, 2024

image

you have to pit them like this , idk why github remove space

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

This is very good bro, Im fixing it right now

from instagram-mass-reporter.

eyal9 avatar eyal9 commented on June 3, 2024

Fixed it! Boryyy, thank you so much. without you i wouldn't be able to do this.

import time
from webbot import *
import pyautogui

print("-------------------------------------")
username = input("Username: ")

a = open('acc.txt', "r").readlines()
file = [s.rstrip()for s in a]
file.reverse()

new_file=[]
for i in range(len(file)):
split=file[i].split(":")
new_file.append(split[0])
new_file.append(split[1])

user =[]
passw = []

for j in range(len(new_file)):
if (j%2)==0:
user.append(new_file[j])
else:
passw.append(new_file[j])

for line in range(len(file)+1):
print(user[line])
print(passw[line])
web = Browser()
web.go_to("https://www.instagram.com/accounts/login/")
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
web.type(user[line], into='Phone number, username, or email')
time.sleep(0.5)
time.sleep(0.5)
web.press(web.Key.TAB)
time.sleep(0.5)
time.sleep(0.5)
web.type(passw[line], into='Password')
web.press(web.Key.ENTER)

time.sleep(2.0)
time.sleep(0.5)
time.sleep(0.5)

web.go_to("https://www.instagram.com/%s/" % username)
time.sleep(0.5)
time.sleep(1.5)

time.sleep(0.5)
time.sleep(0.5)
web.click(xpath='//*[@id="react-root"]/section/main/div/header/section/div[1]/div[3]/button')

time.sleep(2.0)
time.sleep(0.5)

web.click(text='Report User')
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Report Account')
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
web.click(xpath='//html/body/div[5]/div/div/div/div[2]/div/div/div/div[3]/button[1]')
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)
web.click(xpath='//html/body/div[5]/div/div/div/div[2]/div/div/div/div[3]/button[1]')
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)

web.click(xpath='/html/body/div[1]/section/main/div/header/section/div[1]/div/button')
time.sleep(0.5)
time.sleep(0.5)

web.click(text='Log Out')
time.sleep(0.5)
time.sleep(0.5)
time.sleep(0.5)

pyautogui.keyDown('ctrl')
time.sleep(0.25)
pyautogui.keyDown('w')
time.sleep(0.5)
pyautogui.keyUp('ctrl')
pyautogui.keyUp('w') 

from instagram-mass-reporter.

AnujTiwari10 avatar AnujTiwari10 commented on June 3, 2024

@Khanejo bro it shows invalid syntax in webbot line no 377 self.driver.execute_script(f"window.open('{url}');")
^
I tried to change syntax like this self.driver.execute_script('f'"window.open('{url}');")
And error solved but instead of clicking the three dots it's click on message how i can solve it

from instagram-mass-reporter.

Ahoora2007 avatar Ahoora2007 commented on June 3, 2024

hi
what is the meaning of acc_file ??
all libray was install but when i run it seid FileNotFoundError

from instagram-mass-reporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.