View difference between Paste ID: wyYPW8dR and akcBGyku
SHOW: | | - or go back to the newest paste.
1
(defun new-page-iterate (iterfunc url)
2
  (let* ((threadbase (ppcre:regex-replace "\\?[^&]+"
3
                                          (ppcre:regex-replace "&page=(last|first|[0-9]+)"
4
                                                               url
5
                                                               "")
6
                                          ""))
7-
         (page (chtml:parse
7+
         (page (get-parsed-page (make-new-url threadbase '(("page" . 1))))))
8-
                    (get-page
8+
    (reverse (loop as nextpage = (extract-next-page-number page)
9-
                     (concatenate 'string
9+
                   append (reverse (funcall iterfunc page))
10-
                                  threadbase
10+
                   while nextpage
11-
                                  "&page=1"))
11+
                   do (setq page (get-parsed-page (make-new-url nextpage)))))))