Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a program called SpiderLeg.java which parses HTML files from given URLs. Question 1. Create a program called SpiderLeg.java which parses HTML files from given
Create a program called SpiderLeg.java which parses HTML files from given URLs.
Question 1. Create a program called SpiderLeg.java which parses HTML files from given URLs. For this task you can use jsoup, which is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. You may download jsoup from the linlk: http: //jsoup.org And you may get a quick tutorial of jsoup from the link: http://jsoup.org/cookbook/ Your tutor will take you through the use of jsoup in the lab. You may also find plenty of online materials that help you to develop an HTML parser using jsoup. The file SpiderLeg.java should contain the following methods: getTitle (String url): get the title of the web page ur getHyperlink(String url): get all URLs in the web page url getImages(String url): get names of all image files in the web page url, as well as the height, width and alt attributes getMeta(String url): get the meta data, including meta description, and meta keywords of the web page url. Question 1. Create a program called SpiderLeg.java which parses HTML files from given URLs. For this task you can use jsoup, which is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods. You may download jsoup from the linlk: http: //jsoup.org And you may get a quick tutorial of jsoup from the link: http://jsoup.org/cookbook/ Your tutor will take you through the use of jsoup in the lab. You may also find plenty of online materials that help you to develop an HTML parser using jsoup. The file SpiderLeg.java should contain the following methods: getTitle (String url): get the title of the web page ur getHyperlink(String url): get all URLs in the web page url getImages(String url): get names of all image files in the web page url, as well as the height, width and alt attributes getMeta(String url): get the meta data, including meta description, and meta keywords of the web page urlStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started