From 612e91fbfecafea07a2d64eaf62a1e2a5d3b854b Mon Sep 17 00:00:00 2001 From: Aryan Date: Mon, 22 Jun 2026 00:32:37 +0000 Subject: [PATCH] Update src/main/java/Parser.java --- src/main/java/Parser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Parser.java b/src/main/java/Parser.java index 7d57ef4..33d3379 100644 --- a/src/main/java/Parser.java +++ b/src/main/java/Parser.java @@ -1,6 +1,7 @@ import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; +import org.jsoup.Jsoup; import java.io.File; import java.io.IOException; @@ -43,7 +44,7 @@ public class Parser { // TODO: Create a java.io.File object using the given 'filePath'. File in=new File(filePath); // TODO: Parse the HTML file using Jsoup.parse(file, "UTF-8"). This returns a Document object. - Document doc= jsoup.parser(in, "UTF-8" ); + Document doc = Jsoup.parse(in, "UTF-8"); // TODO: Extract the list of movie elements from the Document. // Hint: Use document.select() or document.getElementsByClass() to find all elements with the class "movie".