Skip to content

Begginnig Common Lisp for web scraping

github logo ・1 min read  

hey nerds, do you like web? interest lisp?
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
$ sbcl --load quicklisp.lisp

-----↓↓↓starting sbcl console↓↓↓-----


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 ""))
(defvar parse-html (plump:parse html))
(plump:text (car (coerce (clss:select "title" parse-html) 'list)))

twitter logo DISCUSS (2)
markdown guide
Sloan, the sloth mascot Comment marked as low quality/non-constructive by the community View code of conduct

Check out I'm using Scrapy tool in python!!!

Classic DEV Post from Sep 5 '19

What do you wish to know about JavaScript when you were in university?

taroyanaka profile image