Re: retrieving the source of a webpage - pls help

Derrick Oswald <[email protected]>
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <[email protected]>
You don't need a parser.
Just get the text directly:

URL url
URLConnection con;
InputStream in;

con = url.openConnection ();
con.connect ();
in = con.getInputStream()

then do what you want with the contents.

On Fri, Aug 28, 2009 at 9:43 AM, Neftali Papelleras <
[email protected]> wrote:

> Hi Good Day,
>
> I've been trying to look for a function in this library that can return a
> string of html text of a web page. I know the java.net.URLConnection can
> provide me with it, but it's better for me to just use a single function say
> getHTMLSource that returns the html text of a url.Please let me know if it's
> possible here and with sample code :) Thanks in advance,
>
>
>
> Kind Regards,
> nef
>
> start: 0000-00-00 end: 0000-00-00
> ------------------------------
> Feel safer online. Upgrade to the new, safer Internet Explorer 8
> <http://us.lrd.yahoo.com/_ylc=X3oDMTFnNHZxc2k1BHRtX2RtZWNoA1RleHQgTGluawR0bV9sbmsDVTExMDM0NjUEdG1fbmV0A1lhaG9vIQ--/SIG=11k7khaee/**http%3A//downloads.yahoo.com/sg/internetexplorer/>optimized
> for Yahoo! to put your mind at peace. It's free.
> Get IE8 here!<http://us.lrd.yahoo.com/_ylc=X3oDMTFnNHZxc2k1BHRtX2RtZWNoA1RleHQgTGluawR0bV9sbmsDVTExMDM0NjUEdG1fbmV0A1lhaG9vIQ--/SIG=11k7khaee/**http%3A//downloads.yahoo.com/sg/internetexplorer/>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Htmlparser-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/htmlparser-user
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.