This may be a rookie problem, but I'm stuck and I have to submit this by tomorrow. In short, I send basic GET request to the website and then read responce using BufferedReader
if (HttpURLConnection.HTTP_OK == con.getResponseCode()) {
BufferedReader bf = new BufferedReader(new InputStreamReader(con.getInputStream()));
String line;
while ((line = bf.readLine()) != null) {
sb.append(line);
sb.append("/n");
addToResultList(sb, nameRes);
}
System.out.println(sb);
}
Naturally, this just reads and prints out whole html code of the website, the only problem is that I don't know how to distract specific information from it, i.e. part of responce. I only need the title from it.
` tag out of there somehow.
– Kayaman May 23 '22 at 17:11