Hello there, I have a copule of simple questions. I am using the 3.7 beta image.
1. I need to parse an html page. I've seen some examples on the net using the method "HTMLParser parse:". Hence, Iinstalled the package HTML-Parser on SqueakMap. But I could not get it to work, particullarly I believe that the method /parse/ is deprecated. I tryied using the method "parseDocumentFrom:" but I could not get it to work either. Can anyone send me a clue or a quick example of working code that parses a simple HTML page? 2. I've also tryied installing Scamper, but was unable to us it as well. Curiosely I get the error message "doesNotUnderstand: #parse".
Is there a newer related package I should install to get these frameworks working ? Thank you.
ramiro.
Ramiro Díaz Trepat http://novamens.com http://neosmt.com
On May 31, 2004, at 11:04 AM, Ramiro Diaz Trepat wrote:
Hello there, I have a copule of simple questions. I am using the 3.7 beta image.
- I need to parse an html page. I've seen some examples on the
net using the method "HTMLParser parse:". Hence, Iinstalled the package HTML-Parser on SqueakMap. But I could not get it to work, particullarly I believe that the method parse is deprecated. I tryied using the method "parseDocumentFrom:" but I could not get it to work either. Can anyone send me a clue or a quick example of working code that parses a simple HTML page? 2. I've also tryied installing Scamper, but was unable to us it as well. Curiosely I get the error message "doesNotUnderstand: #parse".
Is there a newer related package I should install to get these frameworks working ?
I believe the package you want is actually Network-HTML. Then "HtmlParser parse: aStream" should work.
Avi
Avi Bryant wrote:
On May 31, 2004, at 11:04 AM, Ramiro Diaz Trepat wrote:
Hello there, I have a copule of simple questions. I am using the 3.7 beta image.
1. I need to parse an html page. I've seen some examples on
the net using the method "HTMLParser parse:". Hence, Iinstalled the package HTML-Parser on SqueakMap. But I could not get it to work, particullarly I believe that the method parse is deprecated. I tryied using the method "parseDocumentFrom:" but I could not get it to work either. Can anyone send me a clue or a quick example of working code that parses a simple HTML page? 2. I've also tryied installing Scamper, but was unable to us it as well. Curiosely I get the error message "doesNotUnderstand: #parse".
Is there a newer related package I should install to get these frameworks working ?
I believe the package you want is actually Network-HTML. Then "HtmlParser parse: aStream" should work.
Avi
Thank you very much Avi, I am sure that is the problem. But now when I try to install the package Network-HTML from SqueakMap I get the following error:
"Error occured during install: can't find EOCD position"
I really don't have a clue about what's going on, or particullarly what EOCD means.
By the way, what is the proper way to remove the packages installed with SqueakMap?
Ramiro Diaz Trepat ramiro@novamens.com wrote: [SNIP]
Thank you very much Avi, I am sure that is the problem. But now when I try to install the package Network-HTML from SqueakMap I get the following error:
"Error occured during install: can't find EOCD position"
I really don't have a clue about what's going on, or particullarly what EOCD means.
This typically means that you didn't get a proper package file. The error in question appears in class ZipArchive (you can select "EOCD" and then pick "more->method strings with it").
I installed the package fine just now, so I think the URL is ok. Try selecting "download" and then "install" again - download will explicitly download it and thus perhaps updating the file in your cache.
By the way, what is the proper way to remove the packages installed with SqueakMap?
Hehe, there is no proper way uninstallation of SM packages in general. Monticello packages can be uninstalled (well, given that we neglect side effects from class initialization etc) using Monticello.
In future versions of SM you will typically see an "uninstall" choice for those packages that are indeed packaged in such a way that that action is possible (like Monticello).
regards, Göran
Am 01.06.2004 um 17:00 schrieb goran.krampe@bluefish.se:
Ramiro Diaz Trepat ramiro@novamens.com wrote: [SNIP]
Thank you very much Avi, I am sure that is the problem. But now when I try to install the package Network-HTML from SqueakMap I get the following error:
"Error occured during install: can't find EOCD position"
I really don't have a clue about what's going on, or particullarly what EOCD means.
This typically means that you didn't get a proper package file. The error in question appears in class ZipArchive (you can select "EOCD" and then pick "more->method strings with it").
I installed the package fine just now, so I think the URL is ok. Try selecting "download" and then "install" again - download will explicitly download it and thus perhaps updating the file in your cache.
The file was hosted on SqueakSource, so there was a :8888 in the url. (bad for forewalls...) I changed that to point to an uploaded version on SqueakMap, maybe this fixes the problem.
Marcus
Avi and Markus, thank you very much. The problem is solved now. (but I still don't know what EOCD means) By the way, HtmlParser is a nifty framework :) Cheers
ramiro.
Marcus Denker wrote:
Am 01.06.2004 um 17:00 schrieb goran.krampe@bluefish.se:
Ramiro Diaz Trepat ramiro@novamens.com wrote: [SNIP]
Thank you very much Avi, I am sure that is the problem. But now when I try to install the package Network-HTML from SqueakMap I get the following error:
"Error occured during install: can't find EOCD position"
I really don't have a clue about what's going on, or particullarly what EOCD means.
This typically means that you didn't get a proper package file. The error in question appears in class ZipArchive (you can select "EOCD" and then pick "more->method strings with it").
I installed the package fine just now, so I think the URL is ok. Try selecting "download" and then "install" again - download will explicitly download it and thus perhaps updating the file in your cache.
The file was hosted on SqueakSource, so there was a :8888 in the url. (bad for forewalls...) I changed that to point to an uploaded version on SqueakMap, maybe this fixes the problem.
Marcus
squeak-dev@lists.squeakfoundation.org