Results 1 to 4 of 4
  1. #1
    willarrive is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default How to return Dom Source in Java

    Hi,
    A typical browser loads raw HTML, parses it, and builds a Document Object Model (DOM).
    If the page includes JavaScript that is run when the page is loaded, the DOM can modified by the JavaScript code.
    Please, I'm looking for a web browser crowler, witch can not only parses HTML but also applies JavaScript, and return the Dom with the modification.
    Something like a program or suggestion witch can help me to return the Dom source (after applying JavaScript) of a website, as string.


    Do you have an idea, please? Or code with return the Dom, please

    Thanks,
    Séraphine

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: How to return Dom Source in Java

    It sticks in my mind that apache has a package for an embedded browser. I can't remember what it is called, and I don't know if it executes javascript or not, but if it did, it would be exactly what you'd want. Try browsing the apache commons, it might be lumped in with the apache http clients and such.

  3. #3
    willarrive is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: How to return Dom Source in Java

    Quote Originally Posted by quad64bit View Post
    It sticks in my mind that apache has a package for an embedded browser. I can't remember what it is called, and I don't know if it executes javascript or not, but if it did, it would be exactly what you'd want. Try browsing the apache commons, it might be lumped in with the apache http clients and such.
    Thank you very much. I'll looking for and test if I see it. If you've more information, send it to me please

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: How to return Dom Source in Java

    Will do! Good luck :D

Similar Threads

  1. Web : frame source, not page source
    By FunkyProg in forum New To Java
    Replies: 0
    Last Post: 03-30-2011, 12:49 AM
  2. python source to java source converter?
    By conor147 in forum New To Java
    Replies: 0
    Last Post: 01-15-2010, 05:14 AM
  3. Java API source
    By Mr.Beans in forum NetBeans
    Replies: 5
    Last Post: 04-10-2009, 04:02 AM
  4. Replies: 0
    Last Post: 01-29-2009, 10:43 AM
  5. Replies: 1
    Last Post: 11-28-2008, 06:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •