5
$\begingroup$

I find that ServiceConnect can access much arXiv information. But is it possible to download the PDF/TEX files I want, e.g., given article "ID"s?

$\endgroup$

1 Answer 1

6
$\begingroup$

To download PDF's for a list of article ID's:

ids = {"1707.04849v1", "0904.3664v1", "1707.09562v3", "1507.02188v1"};
arXiv = ServiceConnect["ArXiv"];

pdfURLs = Flatten[arXiv["Search", {"ID" -> ids}][All, "Link"]][Select[#Type == "application/pdf" &]][All, "Href"];

URLDownload[#, Last[URLParse[#]["Path"]] <> ".pdf"] & /@ Normal[pdfURLs];

Files are downloaded to your home directory. To download to a different location, modify the second argument to URLDownload

$\endgroup$
1
  • $\begingroup$ @Αλέξανδρος Did my answer help? If so, please accept it, if not let me know why so I can improve the answer. Thanks! $\endgroup$ Commented Sep 18, 2018 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.