Re: use with Google App Engine
Derrick Oswald <[email protected]>
| Newsgroups | gmane.comp.parsers.htmlparser.user |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>
>
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user