private static void GetInstagramInfo(string username) { WebClient wc = new(); string pageText = wc.DownloadString("https://www.instagram.com/web/search/topsearch/?query=" + username); try { Instagram.Rootobject theObject = JsonSerializer.Deserialize <Instagram.Rootobject>(pageText); if (theObject.users == null || theObject.users.Length == 0) { Console.WriteLine("- Instagram: Not Found"); } foreach (Instagram.User user in theObject.users) { string userUsername = user.user.username; if (userUsername == username || userUsername == username.ToLower()) { Console.WriteLine("User ID: " + user.user.pk); Console.WriteLine("Full Name: " + user.user.full_name); Console.WriteLine("Username: "******"Instagram OSINT is currently broken - " + jex.Message + " - Bug Reelix!"); } }
private static void GetInstagramInfo(string username) { WebClient wc = new WebClient(); string pageText = wc.DownloadString("https://www.instagram.com/web/search/topsearch/?query=" + username); Instagram.Rootobject theObject = JsonSerializer.Deserialize <Instagram.Rootobject>(pageText); foreach (Instagram.User user in theObject.users) { string userUsername = user.user.username; if (userUsername == username || userUsername == username.ToLower()) { Console.WriteLine("User ID: " + user.user.pk); Console.WriteLine("Full Name: " + user.user.full_name); Console.WriteLine("Username: " + user.user.username); } } }