[Htmlparser-user] ConnectionTimeout after reconnect, caching?
Brought to you by:
derrickoswald
From: Johann H. <h.h...@ic...> - 2010-07-28 12:47:26
|
Hello community, I am writing a website parser with htmlparser and I think it's a great library. My problem is, the website I'm parsing shows me a captcha after a certain number of crawls. As a workaround I wrote a redial routine to reconnect my router and get a new ip. That is working quite well, but my problem is, that my jvm seems to cache DNS. I read this post http://forum.vis.ethz.ch/showthread.php?t=13457 and applied everything which is supposed there, but still I can't continue parsing after a reconnect and I get a ConnectionTimeoutException from htmlparser. It seems, that there might still be some kind of cache. Could anybody tell me, how I can get the new instance of Parser to connect after a reconnect. Thank you. Hans. |