URL url = new URL("https://www.instagram.com/explore/tags/privet/");
URLConnection connection = url.openConnection();
BufferedReader reader = new BufferedReader
(new InputStreamReader(connection.getInputStream()));
String line = null;
while ( ( line = reader.readLine() ) != null ) {
System.out.println(line);
}
reader.close();