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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
See the FAQ on using POST - http://htmlparser.sourceforge.net/faq.html#post
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
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.