diff --git a/scrapers.sql b/scrapers.sql index 1abedc4ed8..99dab8d570 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 60 +-- 61 -- Set the following timestamp to the most recent scraper update date REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-15 15:42:00')); @@ -3560,21 +3560,16 @@ REPLACE INTO "translators" VALUES ('a07bb62a-4d2d-4d43-ba08-d9679a0122f8', '2006 } } - // get cookie - var cookies = doc.cookie.split(/; */); - for each(var cookie in cookies) { - if(cookie.substr(0, 21) == "ABC-Clio-Serials_v4.1") { - var cookieName = cookie.substr(22); - } else { - throw("Could not get cookie name!"); - } - } - Scholar.Utilities.HTTP.doPost(url, postString, function(text) { Scholar.Utilities.HTTP.doPost(url, "_appname=serials&_defaultoperation=Download+Documents&_formname=download&download_format=citation&download_which=tagged&download_where=ris&mailto=&mailreplyto=&mailsubject=&mailmessage=", - function(text) { - Scholar.Utilities.HTTP.doGet("http://serials.abc-clio.com/active/resource/download/"+cookieName+".ris", - function(text) { + function(text) { + // get link + var linkRe = /