problem with my project in common lisp
Posted: Mon Dec 21, 2009 6:04 am
hello,
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.
to run it, write (connect-to-url("URL" " path of the file")
please use http://www.premiere.fr/film/Le-Dernier- ... age)/press like URL
thanks
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-exists :overwrite
:if-does-not-exist :create )
(loop for line = (read-line stream nil nil)
while line
do (format stream2 line)))))
please use http://www.premiere.fr/film/Le-Dernier- ... age)/press like URL
thanks