Random said:"Yo people of MD"
copy/paste much haha. This is FK.
public void CheckList(List<string> names)
{
for(int i = 0; i < names.Count(); i++)
{
try
{
WebClient wc = new WebClient();
wc.DownloadString("https://instagram.com/" + names[i]);
lv_unavail.Invoke(new Action(() => lv_unavail.Items.Add(names[i])));
}
catch(Exception ex)
{
string BannedDeleted = wc.DownloadString("Put link of banned/deleted usernames, I recommend Pastebin")
if(BannedDeleted.Contains(names[i]))
{
// Not available
}
else
{
lv_avail.Invoke(new Action(() => lv_avail.Items.Add(names[i]))); // Available
}
}
}
}
Godmaker said:For those who want to make this, make it as a console application instead of a windows form application. It's much faster. Also, this wont detect banned and/or deleted usernames. I will show an example on how to fix this below.
Code:public void CheckList(List<string> names) { for(int i = 0; i < names.Count(); i++) { try { WebClient wc = new WebClient(); wc.DownloadString("https://instagram.com/" + names[i]); lv_unavail.Invoke(new Action(() => lv_unavail.Items.Add(names[i]))); } catch(Exception ex) { string BannedDeleted = wc.DownloadString("Put link of banned/deleted usernames, I recommend Pastebin") if(BannedDeleted.Contains(names[i])) { // Not available } else { lv_avail.Invoke(new Action(() => lv_avail.Items.Add(names[i]))); // Available } } } }
Okay, so... In the try catch statement, when a username is available it will run the if else statement, checking the inputted link to see if the name exists on the page. If it does, it's banned/deleted, if it's not, it will show as available. Keep in mind that you will need a banned/deleted usernames list for this to work. Message me if anyone needs help.
sdk said:Well you are appending to a listview, don't copy past my code like basically completely, do it on your own a few times bro.
Godmaker said:I was adding onto your code. That's all.
This isn't for console, it's your code just with a little snippet added so that people know how to see if a username is truly banned or deleted, but alright haha.sdk said:Well that snippet wouldn't work in a Console Application. lv_avail is a ListView, no such thing in Console applications.
EDIT: My bad thought u tried to convert it, never read it correctly Kappa
Godmaker said:This isn't for console, it's your code just with a little snippet added so that people know how to see if a username is truly banned or deleted, but alright haha.
sdk said:It's a really bad way of doing it tho, the user needs to have a banned list constantly updating and if one got unbanned or more banned then the person would have to release and update