From 97c742d3b7ed70fafbbbba909940f7904ef72475 Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 22 May 2020 14:47:43 +0100 Subject: [PATCH] Update download.clj --- src/cochrane_scraper/download.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cochrane_scraper/download.clj b/src/cochrane_scraper/download.clj index 2b9f092..380e34f 100644 --- a/src/cochrane_scraper/download.clj +++ b/src/cochrane_scraper/download.clj @@ -23,7 +23,7 @@ [url] (if-let [page (fetch-url url)] (let [action (html/select-nodes* page [(html/attr= :class "action")]) - abstract-replace #(clojure.string/replace % #"abstract" + abstract-replace #(clojure.string/replace % #"full" "downloadstats")] (if-not (empty? action) (abstract-replace (str settings/*wiley-base* @@ -40,7 +40,7 @@ (let [url (str settings/*wiley-base* settings/*cochrane-base* (format "%06d" id) - ".pub" pub "/abstract") + ".pub" pub "/full") link (recent-link url)] (or link (recur id (inc pub)))) false))]