Esempio n. 1
0
        private static void GetRedditInfo(string username)
        {
            var redditInfo = OSINT_Reddit.GetInfo(username);

            if (redditInfo.Exists)
            {
                Console.WriteLine("- Reddit: " + "Found".Pastel(Color.Green));
                foreach (var comment in redditInfo.CommentList)
                {
                    Console.WriteLine("-- Comment: " + comment.body);
                }
            }
            else
            {
                Console.WriteLine("- Reddit: Not Found");
            }
        }
Esempio n. 2
0
        public static void GetRedditInfo(string username)
        {
            var redditInfo = OSINT_Reddit.GetInfo(username);

            if (redditInfo.Exists)
            {
                Console.WriteLine("- Reddit: " + "Found".Pastel(Color.Green));
                Console.WriteLine($"-- Link: https://www.reddit.com/user/{username}");
                // Get Comments
                if (redditInfo.CommentList.Count == 0)
                {
                    Console.WriteLine("-- 0 Comments Made");
                }
                // User has comments - List them
                else
                {
                    foreach (var comment in redditInfo.CommentList)
                    {
                        Console.WriteLine("-- Comment: " + comment.body);
                    }
                }

                // Get submissions
                if (redditInfo.SubmissionList.Count == 0)
                {
                    Console.WriteLine("-- 0 Submissions Made");
                }
                else
                {
                    foreach (var submission in redditInfo.SubmissionList)
                    {
                        Console.WriteLine("-- Submission: " + submission.title);
                        Console.WriteLine("--- Link: " + submission.url);
                        Console.WriteLine("--- Blurb: " + submission.selftext);
                    }
                }
            }
            else
            {
                Console.WriteLine("- Reddit: Not Found");
            }
        }