Questions tagged [jodd-lagarto]

Jodd Lagarto HTML parsers suite, written in Java.

Lagarto Suite is the family of HTML/XML parsers written in Java. It consists of the following libraries:

  1. LagartoParser is an all-purpose fast and versatile event-based HTML parser. You can use it to modify or analyze some markup content, allowing you to assemble custom complex transformations and code analysis tools quickly. It is performant and follows the rules of the official HTML specification.
  2. LagartoDom builds a DOM tree in memory from the input. You can manipulate a tree more conveniently, with minor performance sacrifice.
  3. Jerry is a "jQuery in Java" - you can use the familiar syntax of JavaScript library inside of Java to parse and manipulate HTML.
  4. CSSelly - finally, this is the parser of CSS3 selectors.
5 questions
3
votes
1 answer

Jodd Jerry (java): how to get the contents of node itself?

Using Jodd Jerry, how to get the contents of node itself? (Jodd jerry is Java utilility) Like jQuery: $("selector").prop('outerHTML')
senz
  • 79
  • 3
  • 11
2
votes
1 answer

Jerry doc.$ getelementbyclassname

i want to access an element which has no id - just a class. How can i access it with Jodd? Does Jodd have an equivalent to getelementbyclassname? The Html looks like the following:
  • 1
    vote
    1 answer

    Using Jodd Lagarto to parse XML

    I am using Jodd Lagarto to parse some HTMLs. For some cases I also use Jerry, when I need to quickly process HTML. But now, I have some XMLs that I need to process. From the TagVisitor it looks like Lagarto may process XMLs as well (that would be…
    user4095212
    0
    votes
    1 answer

    How it is possible to use jodd.http.HttpRequest to load a page content that is generated by javascript?

    I try to load a page content with: HttpResponse response2 = HttpRequest.get(_PAGE_URL).cookies(response.cookies()).send(); In a browser, the page source is full of javascript to generate the DOM, but in the Web Inspector of the browser I can see…
    papgyo
    • 87
    • 4
    -3
    votes
    2 answers

    Replace text with {} symbol in Jerry?

    I have the following code:

    To
    {customerDetails}

    I tried by following but it gave an error. Jerry doc =…
    M.S.Naidu
    • 2,239
    • 5
    • 32
    • 56