I need fill the form on the website (registration to Search Engines or free catalogs).
I programing in Java SE, but I have no experience with the fill forms on the web page with Java. I would like to Open Source program, so no commercial libraries, but only with a license from BSD to GPL.
Me idea is (may be wrong):
1) first, we need to get elements to fill: - in the own database - receive from the HTML Parser 2) if the captcha, and automati开发者_如何转开发cally decode (recognize) or offer a picture (for the code). 3) send the completed form (POST) - ideally with confirmationI Would like to ask for advice:
a) what library to use for HTML Parser ? b) anticaptcha or recognize library ? (like JDownloads or FRD (FreeRapid Downloader) c) any tutorial or similar sample code to send formThanks in advance. Merax
In my opinion whole thing with parsing html does not have to be necessary. You may just need to prepare proper url (with all required parameters) and simply call it. To deduce how url should look like you can use firefox with HttpFox plugin.
Of course my solution does not take into consideration captchas.
Try HtmlUnit.
精彩评论