[Pharo-project] Newbie: How to load and use HTTP parser
Hi Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;) I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser? What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though. Thank you, Andrei
On May 7, 2010, at 5:07 PM, Andrei Stebakov wrote:
Hi
Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;)
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
I know that there is a HTML. Check the squeaksource package HTML. If it works let us know else it should be fixed for 1.0 we should publish it in Metacello format
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
We are in the process of building an infrastructure for that.
Thank you, Andrei _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
On 08.05.2010 09:32, Stéphane Ducasse wrote:
On May 7, 2010, at 5:07 PM, Andrei Stebakov wrote:
Hi
Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;)
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
I know that there is a HTML. Check the squeaksource package HTML.
http://www.squeaksource.com/htmlcssparser.html Cheers Philippe
You can try to ask (this or other questions) in Russian Smalltalk User Group also: http://groups.google.com/group/sugr/ :) 2010/5/7 Andrei Stebakov <lispercat@gmail.com>
Hi
Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;)
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Dennis Schetinin
http://lists.squeakfoundation.org/pipermail/beginners/2010-April/006986.html 2010/5/7 Andrei Stebakov <lispercat@gmail.com>:
Hi
Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;)
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
When I try to execute ( HtmlValidator onUrl: 'http://en.wikipedia.org/wiki/Pharo' asUrl ) dom. I get an error: ByteString(Object)>>doesNotUnderstand: #url HtmlValidator>>document HtmlValidator>>content HtmlValidator>>parse HtmlValidator>>dom UndefinedObject>>DoIt Compiler>>evaluate:in:to:notifying:ifFail:logged: [] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection BlockClosure>>on:do: TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection TextMorphForShoutEditor(ParagraphEditor)>>doIt [] in TextMorphForShoutEditor(ParagraphEditor)>>doIt: TextMorphForShoutEditor(ParagraphEditor)>>terminateAndInitializeAround: TextMorphForShoutEditor(ParagraphEditor)>>doIt: TextMorphForShoutEditor(ParagraphEditor)>>dispatchOnKeyEvent:with: TextMorphForShoutEditor(TextMorphEditor)>>dispatchOnKeyEvent:with: TextMorphForShoutEditor(ParagraphEditor)>>keystroke: TextMorphForShoutEditor(TextMorphEditor)>>keystroke: [] in [] in TextMorphForShout(TextMorph)>>keyStroke: TextMorphForShout(TextMorph)>>handleInteraction: The failing place is: document "Answer the value of document" document isNil ifTrue: [ url isNil ifTrue: [nil] ifFalse: [ document := self loader documentForUrl: self url. loader url: document url. ] ]. ^document Looks like "document url" trips on url. I am new to ST, how can I find what's missing? Thank you, Andrew On Sat, May 8, 2010 at 5:12 PM, Hernán Morales Durand < hernan.morales@gmail.com> wrote:
http://lists.squeakfoundation.org/pipermail/beginners/2010-April/006986.html
2010/5/7 Andrei Stebakov <lispercat@gmail.com>:
Hi
Sent this message to the Pharo-users group, but no response for a couple of days, so trying it here ;)
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
I put an HTML-Parser (package HTML) here when trying to make Scamper works http://squeaksource.com/LaurentLSandbox.html but I think it's not really stable. You may be interested in this screencast: http://pharocasts.blogspot.com/2010/02/rest-xml-parsing-and-photos.html
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
At the moment there's no "official" GUI. A good place to start is the MetacelloRepository. http://www.squeaksource.com/MetacelloRepository Cheers, Laurent Laffont http://pharocasts.blogspot.com/ http://magaloma.blogspot.com/
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I found a 'Soup' HTML parser package which works really well for me: http://news.squeak.org/2009/01/19/soup-for-squeak/ 2010/5/11 laurent laffont <laurent.laffont@gmail.com>
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
I put an HTML-Parser (package HTML) here when trying to make Scamper works http://squeaksource.com/LaurentLSandbox.html but I think it's not really stable.
You may be interested in this screencast: http://pharocasts.blogspot.com/2010/02/rest-xml-parsing-and-photos.html
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
At the moment there's no "official" GUI. A good place to start is the MetacelloRepository. http://www.squeaksource.com/MetacelloRepository
Cheers,
Laurent Laffont
http://pharocasts.blogspot.com/ http://magaloma.blogspot.com/
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
thanks for reporting it. Stef On May 12, 2010, at 7:28 PM, Andrei Stebakov wrote:
I found a 'Soup' HTML parser package which works really well for me: http://news.squeak.org/2009/01/19/soup-for-squeak/
2010/5/11 laurent laffont <laurent.laffont@gmail.com>
I have a simple task of parsing some html content in Pharo (loading an html page using HTTPSocket and retrieving useful info from it). Having browsed for an html parser in my current one-click Pharo 1.0 image, I couldn't find one. How do I find/download a (the) HTML parser?
I put an HTML-Parser (package HTML) here when trying to make Scamper works http://squeaksource.com/LaurentLSandbox.html but I think it's not really stable.
You may be interested in this screencast: http://pharocasts.blogspot.com/2010/02/rest-xml-parsing-and-photos.html
What's the general routine of discovering and installing packages in Pharo? I believe in Squeak there was a menu to explore and download packages, I couldn't find it in Pharo though.
At the moment there's no "official" GUI. A good place to start is the MetacelloRepository. http://www.squeaksource.com/MetacelloRepository
Cheers,
Laurent Laffont
http://pharocasts.blogspot.com/ http://magaloma.blogspot.com/
Thank you, Andrei
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (6)
-
Andrei Stebakov -
Dennis Schetinin -
Hernán Morales Durand -
laurent laffont -
Philippe Marschall -
Stéphane Ducasse