Welcome to the CHICKEN Scheme pasting service

schneier.scm added by wasamasa on Mon Jul 27 19:51:43 2015

(use (only http-client with-input-from-request)
     (only html-parser html->sxml)
     sxpath)

(define (fact)
  (let* ((base-url "http://www.schneierfacts.com/")
         (document (with-input-from-request base-url #f html->sxml)))
    ((sxpath "string(//p[@class=\"fact\"])") document)))

(print (fact))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the operator to construct procedures?
Visually impaired? Let me spell it for you (wav file) download WAV