I am working on extracting information of the ads present on a webpage. I am quite impressed with the filtering algorithm used by adblockplus and would like to use a similar algorithm to identify the advertisements on a given webpage. I have gone through the libraries, but am unable to figure out a way to use these libraries for this purpose. If somebody has an idea, kindly help. Also I just wanted to know if such a filtering algorithm can be used in java. If so, then how.