+ 2
How can i check a website for broken links with java
Is there any way to check all links from a website if there are broken links of link to images, files that does not exist
6 Réponses
+ 2
You could use a webscraper to gather all of the a tags and other links. Then parse the tags and collect the URLs in an array or something. Then send an HTTP request to each link. If the links don't either a 200 or 300 code, they're broken.
+ 3
Konstantinos Kotsis I don't know how to write a webscraper. My guess is you'll have to download the page, split each element up into an array of sorts, and parse it like that. That's just a very basic one.
+ 2
Let me know how it goes. Im interested to see this.
+ 1
Thank you very much Ben. I will try to make some code
0
i am interested in writing a webscraper code in java...