I have already posed the same problem on this forum, but I have always the same same problem in my project. My problem is the following: I must extract criticize on films in the Web site www.première.fr.
I have already a function lisp which allows to extract code HTML from the page, but my problem is qu' it is not extract well, because the code html it gives to me is incomplete. you can test and say to me how to arrange this problem.
- Code: Select all
(defun connect-to-url (url filename)
(ext:with-http-input (stream url)
(with-open-file (stream2 filename :direction :output
:if-does-not-exist :create )
(loop for line = (read-line stream nil nil)
do (format stream2 line)))))
to run it, write (connect-to-url("URL" " path of the file")
please use http://www.premiere.fr/film/Le-Dernier-Vol/(affichage)/press like URL