Created
November 28, 2014 00:24
-
-
Save defndaines/d3abbb64f52a05cb660e to your computer and use it in GitHub Desktop.
next-link Function for REPL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- next-link [dom] | |
; Written this way to avoid Util.java:221 RuntimeException for Unmatched delimiter: ) | |
; Will throw NPE for single-page wish lists. | |
; Will throw CCE for last page of multi-page lists. | |
(az-link (((first ((first (html/select dom [:#wishlistPagination :li.a-last])) :content)) :attrs) :href))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment