开发者

Fill the form on the website (ideally with Java) - registration to Search Engines

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 confirmation

I 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 form

Thanks 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜