Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Mario Domenech Goulart
Hi, On Mon, 29 Dec 2014 12:12:22 +0100 Kooda ko...@upyum.com wrote: ;; --- member? returns #t if elemnt x is in list lst. ;; --- ref: ;; --- http://stackoverflow.com/questions/14668616/scheme-fold-map-and-filter-functions ;; --- use: (member? a (list a 1)) -- #t (define (member? x lst)

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Peter Bex
On Mon, Dec 29, 2014 at 03:28:15AM +0100, mfv wrote: So far, I have been getting the site with http-client, the raw html to sxml with html-parser, and trying to process the resulting list with matchable/srfi-13. I would recommend avoiding that, as it can get really messy. sxpath is meant for

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread mfv
Hey! Sxml-transform and other sxml related eggs can certainly help you here, but I don’t know them really well so I can’t help you with that. thanks, I will look into that. ;; saving function (define (savedata somedata filename) (call-with-output-file filename (lambda (p)

Re: [Chicken-users] Happy Christmas

2014-12-29 Thread Kevin Wortman
Happy holidays from California, USA! Cheers, Kevin Wortman On Sat, Dec 27, 2014 at 1:06 AM, Karel Miklav ka...@lovetemple.net wrote: Happy holidays Felix, the rest of the Chicken team and everybody else on this list. Thank you for the good work! Karel

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Ivan Raikov
Hello Piotr, The neuromorpho egg is a scraper-like utility to fetch information from a public database with neuronal reconstructions. You can look at the code for examples of page scraping with sxpath. In particular, take a look at the procedures table-alist, extract-metadata,

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread mfv
Hello, I somehow always manage to get it working with sxpath when I need to do some web scraping, but it's somewhat painful. Thanks, I will have a look at sxpath. Are there any packages like Python's Beautifulsoup in the Chicken arsenal? That sort of thing is sorely lacking.

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Peter Bex
On Mon, Dec 29, 2014 at 07:47:33PM +0100, mfv wrote: All in all, I must say that it is much more difficult to get going with Chicken then with Python. The overall language is simple, but the learning curve is fairly steep - and I am not sure whether it will pay off. Hm, that's unfortunate.

Re: [Chicken-users] Happy Christmas

2014-12-29 Thread Pedro Melendez
Is it too late to join to the Happy holidays sentiment? I hope you guys had (and/or are having) a great holiday season. Cheers, Pedro. On Mon, Dec 29, 2014 at 1:56 PM, Kevin Wortman kwort...@gmail.com wrote: Happy holidays from California, USA! Cheers, Kevin Wortman On Sat, Dec 27, 2014

Re: [Chicken-users] Happy Christmas

2014-12-29 Thread Kristian Lein-Mathisen
I'm a little late too! I also want to wish everyone a wonderful vacation. And a happy new year with many blessings! K. On Dec 29, 2014 9:15 PM, Pedro Melendez pmelen...@pevicom.com wrote: Is it too late to join to the Happy holidays sentiment? I hope you guys had (and/or are having) a great

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2014-12-29 Thread Alex Shinn
On Tue, Dec 30, 2014 at 3:47 AM, mfv m...@freeshell.de wrote: Hello, I somehow always manage to get it working with sxpath when I need to do some web scraping, but it's somewhat painful. Thanks, I will have a look at sxpath. Are there any packages like Python's Beautifulsoup in the