Thread: [Htmlparser-user] help
Brought to you by:
derrickoswald
From: Visarut T. <piz...@ho...> - 2002-12-22 17:00:48
|
help I want to know if I want to parse only text (not in tag) in a website how can I do , or how can I modify. please tell me quickly .I want this to use in my project. Thank you very much _________________________________________________________________ MSN 8: advanced junk mail protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf_3mf |
From: vihang <vih...@ho...> - 2003-10-13 01:07:37
|
I am usiing html parser to parse the files. However the parser accepts the files only that ones that are on the server ie online. I need to parse some files that are on disk . Can somebody tell me how to parse the files that are on disk. The parser object aceepts the input of the form .. Parser parser = new Parser("http://www.yahoo.com",new DefaultHTMLParserFeedback()); i want the first argument to be a location on the disk , but the parser wont work. Can anybody help ?? - Vihang |
From: Derrick O. <Der...@Ro...> - 2003-10-26 14:07:47
|
vihang, The constructor you mention tries first as a URL and then if that fails it tries as a file on the local disk, so new Parser ("d:\\myfile.html", new DefaultParserFeedback()) will work. I see you are using an old version (that uses DefaultHTMLParserFeedback). Try upgrading. Derrick vihang wrote: >I am usiing html parser to parse the files. However the parser accepts the >files only that ones that are on the server ie online. I need to parse some >files that are on disk . Can somebody tell me how to parse the files that >are on disk. The parser object aceepts the input of the form .. > >Parser parser = new Parser("http://www.yahoo.com",new >DefaultHTMLParserFeedback()); > >i want the first argument to be a location on the disk , but the parser wont >work. Can anybody help ?? > >- Vihang > > > |
From: krishna <kri...@ya...> - 2010-01-20 10:46:27
|
dear friends, whenever I run my program with local html file, i have no problem. when i run it through the internet connection, i have this exception. org.htmlparser.util.ParserException: with some quotes can anybody say why? how i can recover. |
From: Somik R. <so...@ya...> - 2002-12-22 18:45:54
|
Hi Visarut Check http://htmlparser.sourceforge.net/samples/text.html In general, check http://htmlparser.sourceforge.net/samples/ for a list of other commonly used programs. Regards Somik ----- Original Message ----- From: "Visarut Tanpoungchoey" <piz...@ho...> To: <htm...@li...> Sent: Sunday, December 22, 2002 8:58 AM Subject: [Htmlparser-user] help > help > I want to know if I want to parse only text (not in tag) in a website how > can I do , > or how can I modify. > > please tell me quickly .I want this to use in my project. > > Thank you very much > > _________________________________________________________________ > MSN 8: advanced junk mail protection and 3 months FREE*. > http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=747 4&SU= > http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_advancedjmf _3mf > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user |
From: Navid H.L. <na...@ya...> - 2002-12-23 19:44:56
|
Hi Somik, I had a problem accessing this site (www.teamstore.com) which was giving me HTTP error 501. I tried to access the site with Java's URLConnection class, and again I got same result, error 501! But once I used this setting (see line 3 below), I gained access to the site, an no more errors: 1-URL mysite = new URL("http://www.teamstore.com"); 2-URLConnection yc = mysite.openConnection(); 3-yc.setRequestProperty("User-Agent", "Mozilla/3.0 (Windows NT 4.0; U) Opera 6.0 [en]") ; I was wonder if it is possible to do the same, "setRequestProperty" with HTMLParser objects? I really appreciate it if you could let me know this. By the way, I wish you and all others involved in this project a Happy Xmas and New Year! With Best wishes Navid __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |