def Spam(self, userid, username, reasonid): if (self.isproxyok != True): return profileURL = "https://www.instagram.com/" + username + "/" reportURL = "https://www.instagram.com/users/" + userid + "/report/" self.SetDefaultHeaders(profileURL) self.GetAndUpdate(profileURL) res = self.PostAndUpdate(reportURL, { "source_name": "profile", "reason": reasonid }) try: obj = res.json() if ("description" in obj and "status" in obj): if (obj["status"] == "ok" and obj["description"] == "Your reports help keep our community free of spam."): PrintSuccess("Şikayet başarıyla yollandı!", self.user) return PrintError("Şikayet yollama isteğimiz red edildi!", self.user) except: PrintError("Şikayet yollanırken bir hata oluştu!", self.user) pass
def Spam(self, userid, username, reasonid): if (self.isproxyok != True): return profileURL = "https://www.instagram.com/" + username + "/" reportURL = "https://www.instagram.com/users/" + userid + "/report/" self.SetDefaultHeaders(profileURL) self.GetAndUpdate(profileURL) res = self.PostAndUpdate(reportURL, { "source_name": "profile", "reason": reasonid }) try: obj = res.json() if ("description" in obj and "status" in obj): if (obj["status"] == "ok" and obj["description"] == "Your reports help keep our community free of spam."): PrintSuccess("Complaint was successfully sent!", self.user) return PrintError("Our request to submit a complaint was rejected!", self.user) except: PrintError("An error occurred while submitting a complaint!", self.user) pass
def Login(self): if (self.isproxyok != True): return self.SetDefaultHeaders("https://www.instagram.com/accounts/login/") res = self.PostAndUpdate("https://www.instagram.com/accounts/login/ajax/",{ "username": self.user, "password": self.password, "queryParams": "{}", "optIntoOneTap": "false" }) if (res.status_code == 200): try: obj = res.json() if ("message" in obj and obj["message"] == "checkpoint_required"): PrintError("Requires account verification! (URL:", obj["checkpoint_url"], ")") self.isproxyok = False return if ("authenticated" in obj and obj["authenticated"] == True and "user" in obj and obj["user"] == True): PrintSuccess("Login successful!", self.user) self.isproxyok = True return if ("errors" in obj and "error" in obj["errors"]): PrintError("Login failed! Proxy may not be working. (Proxy:", self.user, self.ip, ":", self.port, ")") self.isproxyok = False return self.isproxyok = False except: PrintError("Login failed!", self.user) pass
def Connect(self): if (self.isproxyok != True): PrintError("Proxy does not work! (Proxy:", self.user, self.ip, ":" ,self.port, ")") return if (self.ip != None and self.port != None): PrintSuccess("Proxy working! (Proxy:", self.user ,self.ip, ":" ,self.port, ")") self.GetAndUpdate("https://www.instagram.com/accounts/login/") if (self.IsCookiesOK() != True): PrintError("Cookies could not be received! Try another proxy! (Proxy:", self.user, self.ip, ":", self.port, ")") self.isproxyok = False return pass
def Connect(self): if (self.isproxyok != True): PrintError("Proxy works!", self.user, self.ip, ":", self.port, ")") return if (self.ip != None and self.port != None): PrintSuccess("Proxy works! (Proxy:", self.user, self.ip, ":", self.port, ")") self.GetAndUpdate("https://www.instagram.com/accounts/login/") if (self.IsCookiesOK() != True): PrintError("Can not retrieve cookies! Try another proxy", self.user, self.ip, ":", self.port, ")") self.isproxyok = False return pass
def Connect(self): if (self.isproxyok != True): PrintError("Proxy çalışmıyor! (Proxy:", self.user, self.ip, ":", self.port, ")") return if (self.ip != None and self.port != None): PrintSuccess("Proxy çalışıyor! (Proxy:", self.user, self.ip, ":", self.port, ")") self.GetAndUpdate("https://www.instagram.com/accounts/login/") if (self.IsCookiesOK() != True): PrintError( "Cookie'ler alınamadı! Başka bir proxy deneyin! (Proxy:", self.user, self.ip, ":", self.port, ")") self.isproxyok = False return pass
def Login(self): if (self.isproxyok != True): return self.SetDefaultHeaders("https://www.instagram.com/accounts/login/") res = self.PostAndUpdate( "https://www.instagram.com/accounts/login/ajax/", { "username": self.user, "password": self.password, "queryParams": "{}", "optIntoOneTap": "false" }) if (res.status_code == 200): try: obj = res.json() if ("message" in obj and obj["message"] == "checkpoint_required"): PrintError("Hesap doğrulama gerektiriyor! (URL:", obj["checkpoint_url"], ")") self.isproxyok = False return if ("authenticated" in obj and obj["authenticated"] == True and "user" in obj and obj["user"] == True): PrintSuccess("Giriş başarılı!", self.user) self.isproxyok = True return if ("errors" in obj and "error" in obj["errors"]): PrintError( "Giriş yapılamadı! Proxy çalışmıyor olabilir. (Proxy:", self.user, self.ip, ":", self.port, ")") self.isproxyok = False return self.isproxyok = False except: PrintError("Giriş yapılamadı!", self.user) pass