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$
4
$\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$
  • $\begingroup$ @Αλέξανδρος Did my answer help? If so, please accept it, if not let me know why so I can improve the answer. Thanks! $\endgroup$ – Rohit Namjoshi Sep 18 '18 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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