hey nerds, do you like web? interest lisp?
no?
i dont care
okay i do
Step1: install sbcl
$ brew update
$ brew install sbcl
(now, clisp is stopped update)
Step2: install quick lisp
$ curl -O http://beta.quicklisp.org/quicklisp.lisp
$ sbcl --load quicklisp.lisp
----------↓↓↓starting sbcl console↓↓↓-----
(quicklisp-quickstart:install)
(ql:add-to-init-file)
Step3: install libraries to sbcl by quicklisp
(ql:quickload :drakma)
(ql:quickload :plump)
(ql:quickload :clss)
Step4: drink a coffee
Step5: write codes and eval
(defvar html (drakma:http-request "http://www.paulgraham.com/hp.html"))
(defvar parse-html (plump:parse html))
(plump:text (car (coerce (clss:select "title" parse-html) 'list)))
Top comments (1)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.