[Pharo-project] parsing html....
Hi everyone. I want to parse an HTML document with Pharo, But the following example fails: XMLDOMParser parse: (ZnEasy get: 'http://www.google.com/') contents. fails on some javascript (&&window...) due to a lazily omitted <![CDATA[ in the <script> section. So Is there an easy way to get around this? cami
I've no idea if it still works in Pharo 1.3/4 but Soup is quite nice: http://www.squeaksource.com/Soup.html On 21/09/11 13:44, Camillo Bruni wrote:
Hi everyone.
I want to parse an HTML document with Pharo, But the following example fails:
XMLDOMParser parse: (ZnEasy get: 'http://www.google.com/') contents.
fails on some javascript (&&window...) due to a lazily omitted<![CDATA[ in the<script> section. So Is there an easy way to get around this?
cami
seems to work :) thanks On 2011-09-21, at 13:49, Francois Stephany wrote:
I've no idea if it still works in Pharo 1.3/4 but Soup is quite nice:
http://www.squeaksource.com/Soup.html
On 21/09/11 13:44, Camillo Bruni wrote:
Hi everyone.
I want to parse an HTML document with Pharo, But the following example fails:
XMLDOMParser parse: (ZnEasy get: 'http://www.google.com/') contents.
fails on some javascript (&&window...) due to a lazily omitted<![CDATA[ in the<script> section. So Is there an easy way to get around this?
cami
participants (2)
-
Camillo Bruni -
Francois Stephany