-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch-pdfs.xq
7 lines (6 loc) · 1.78 KB
/
fetch-pdfs.xq
1
2
3
4
5
6
7
for $x in ('70701','70714','70726','70763','70766','70767','70779','70780','70810','70816','70848','70878','70881','70921','70936','71008','71016','71035','71074','71094','71103','71132','71137','71142','71156','71186','71196','71198','71226','71227','71229','71230','71238','71256','71282','71309','71332','71339','71348','71356','71361','71365','71403','71437','71455','71464','71469','71476','71478','71503','71521','71527','71533','71542','71562','71569','71578','71588','71591','71624','71634','71647','71655','71703','71705','71720','71736','71768','71770','71802','71845','71846','71850','71854','71862','71864','71866','71877','71880','71887','71890','71911','71928','71929','71931','71938','71945','71947','71953','71965','71994','72031','72056','72067','72068','72071','72072','72073','72083','72096','72103','72123','72124','72135','72136','72139','72169','72182','72187','72195','72196','72202','72247','72251','72266','72290','72294','72302','72313','72331','72356','72357','72359','72374','72381','72382','72410','72415','72416','72418','72440','72443','72452','72458','72460','72464','72466','72468','72482','72483','72484','72486','72500','72512','72519','72534','72549','72555','72579','72588','72595','72599','72601','72602','72626','72627','72629','72630','72632','72638','72657','72664','72666','72668','72707','72723','72769','72778','72779','72780','72792','72801','72805','72806','72811','72822','72824','72825','72834','72837','72849','72850','72861','72863','72865','72867','72871','72872','72875','72879','72883','72884','72898','72904','72905','72908','72909','72917','72929','72930')
let $uri := 'https://elifesciences.org/articles/'||$x||'.pdf'
let $f := fetch:binary($uri)
let $n := $x||'.pdf'
let $folder := '/Users/fredatherden/Desktop/pdfs/'
return file:write-binary(($folder||$n),$f)