Menu

Parsing URL Need Help

Help
Pandu
2007-10-27
2013-04-27
  • Pandu

    Pandu - 2007-10-27

    Hi,

    I want to parse the url.. http://www.otvoreni.hr/default.aspx?id=966 ..I have some keywords in an arraylist... I have to input tose keywords one by one in the searchbox and submit the page.. when i get the output, I want to parse the table and get the resultant content..How to do that...Because the search box here used Http Post..

    Thanks in Advance
    -Pandu

     
    • Derrick Oswald

      Derrick Oswald - 2007-10-27
       
      • Pandu

        Pandu - 2007-10-31

        Hello.... The example given in that page doesn't work... It's not posting the data/its not submitting the form... I need some exaples... Where could i get exaples... As you can see i want to submit the page programatically...and want to parse the resultant page... The example in link you gave only parses the page which we give and gives the text output.
        -Pandu

         
        • Derrick Oswald

          Derrick Oswald - 2007-10-31

          It is posting the data:
                      connection.setRequestMethod ("POST");

          It is submitting the form:
                      // from the 'action' (relative to the refering page)
                      url = new URL ("http://ws.arin.net/cgi-bin/whois.pl");

          A similar example is in the unit test code.
          I'm sorry, there aren't any more examples.

          I'm afraid I can't see your problem.
          It is submitting the page programmatically, and parsing the resultant page.
          Perhaps if it isn't clear enough you should find another library to use, or maybe another vocation.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.