I am trying to create a program that is able to track/manage social media followers, with the simple idea of using a URL object and a BufferedReader in Java, extracting the strings and filtering it out to only display/keep certain things out of the HTML document. For example; loading the Following page on a user's account and returning each user on the list, and then checking if each account on that list follows the user checking.
The problem is certain links from social media sites, like twitter.com/username/following, are only accessible when logged into Twitter and just return the login page when trying to read from it with a URL object.
I'm not very experienced with "Web Programming" but I was wondering if there is a way that I can "log in" with a URL object in Java, or other methods of doing so, so that it displays the correct page I am trying to load and extract Strings/data from.
Thank you for any help or resources you can provide.