Comments (44)
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.
` 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.
Ok!! Give me a few hours, I'll crosscheck it
from instagram-mass-reporter.
@Khanejo thanks
from instagram-mass-reporter.
Try Instagram bot2.py( the one I just uploaded), it seems to parse file rightly
from instagram-mass-reporter.
from instagram-mass-reporter.
idk how to fix this one
from instagram-mass-reporter.
@Khanejo anything u can do ? thanks for ur time
from instagram-mass-reporter.
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.
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.
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.
@Khanejo it works fine the first time , then when its time to load the next account it shows this
from instagram-mass-reporter.
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 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.
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.
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.
Can anyone help me with going through the whole process of downloading this? @Khanejo
from instagram-mass-reporter.
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.
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.
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.
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.
also, do i put the username i want to report in 'new=file' ?
from instagram-mass-reporter.
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.
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.
Do I need to copy the script you posted in notepad and call it acc.txt?
from instagram-mass-reporter.
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.
from instagram-mass-reporter.
obviously I'm gonna fill it up, but like this?
from instagram-mass-reporter.
Yes.
from instagram-mass-reporter.
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.
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.
web.type(user[line], into='Phone number, username, or email') IndexError: list index out of range
from instagram-mass-reporter.
@Boryyy does this still work for you?
from instagram-mass-reporter.
@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.
Know how to fix this? split=file[i].split(":") ^ IndentationError: expected an indented block
from instagram-mass-reporter.
u need to find another bot i guess , or just need to update it
from instagram-mass-reporter.
come on man dont give up on me
from instagram-mass-reporter.
can u atleast teach me abit
from instagram-mass-reporter.
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.
you have to pit them like this , idk why github remove space
from instagram-mass-reporter.
This is very good bro, Im fixing it right now
from instagram-mass-reporter.
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.
@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.
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)
- How to download file in mobile
- Can any human explain me the whole process plss? HOT 1
- :/ HOT 1
- IndexError: list index out of range
- how to put the username and password in list of accounts ? HOT 1
- Tool not working
- no clue how to do this
- Test
- Not Working HOT 4
- IndexError: list index out of range HOT 3
- It shows python: can't open file '/data/data/com.termux/files/home/Instagram-reporter/Instagram': [Errno 2] No such file or directory HOT 1
- Can't get it to work HOT 4
- hello i need buy inta mass reporter HOT 2
- Report
- Hack HOT 1
- Report HOT 2
- Getting these error what to do?? HOT 2
- It shows me in Error: web = Browser()
- 3 HOT 1
- Instagram Report Bot2.py → 0d08 bans HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram-mass-reporter.