Re: [Htmlparser-user] use with Google App Engine
Brought to you by:
derrickoswald
From: Derrick O. <der...@gm...> - 2009-12-15 16:39:22
|
As it says in the StringBean header, you can use the StringBean as a visitor: * StringBean sb = new StringBean (); * Parser parser = new Parser ("http://cbc.ca"); * parser.visitAllNodesWith (sb); * String s = sb.getStrings (); * sb.setLinks (true); * parser.reset (); * parser.visitAllNodesWith (sb); * String sl = sb.getStrings (); On Tue, Dec 15, 2009 at 1:09 PM, Andy Wickson <an...@aw...> wrote: > Thanks for the reply. > You wrote that I can turn off cookie processing with: > parser.getConnectionManager > ().setCookieProcessingEnabled(false) > > However, I am using the StringBean class that has no access to the Parser > it uses: > > My code is like: > > StringBean sb = new StringBean (); > sb.setURL (http://blah-blah); > String result = sb.getStrings (); > > Any idea how I can get to the parser? > > Thanks > > > > > > > ------------------------------------------------------------------------------ > Return on Information: > Google Enterprise Search pays you back > Get the facts. > http://p.sf.net/sfu/google-dev2dev > > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > > |