Giter VIP home page Giter VIP logo

htmlanalyzer's Introduction

HTML Analyzer in Java

This system is an HTML analyzer MVP that uses a URL to discover the text localized in your deeper HTML structure section.

Usage instructions:

This program can be compiled and executed using JDK 17.

  1. Open the CMD;
  2. Go to the directory containing the source code files;
  3. Inside the directory, execute the command javac HtmlAnalyzer.java to compile the program;
  4. Still inside the directory, write the command java HtmlAnalyzer insert-url-here to execute the program (don't forget to replace "insert-url-here" for a valid URL).

Notes:

  • No libraries and frameworks were used external to the JDK, as well as packages and native JDK classes related to data manipulation HTML, XML or DOM;
  • This code logic is constructed based that all input code follows the following premises:
1. The HTML code is divided into lines;
2. Each line can only be one of the following types:
A. Opening tag (example: <div>)
B. Closing tag (example: </div>)
C. Text excerpt (example: “This is the body.”)
3. The same line cannot contain two types of content;
4. Only HTML elements with opening and tag pairs closure are used (example: <div> and </div>, but no <br/>)
5. Opening tags do not have attributes (counterexample: <a href=”link.html”>).
  • This system may not give you the correct output if the input code doesn't follow these premises;
  • The exception treatment is also developed to lead with intern problems considering to show only the required outputs malformed HTML, URL connection error or the deeper text identified.

Developed by Letícia Beatriz Souza.

htmlanalyzer's People

Watchers

Letícia Beatriz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.