scopusAPI icon indicating copy to clipboard operation
scopusAPI copied to clipboard

Error in searchByString(string = myQuery, outfile = "testdata.xml") : Unauthorized (HTTP 401).

Open omar-almolla209 opened this issue 2 years ago • 1 comments

Running:

theXML <- searchByString(string = myQuery, outfile = "testdata.xml")

I got this error: Error in searchByString(string = myQuery, outfile = "testdata.xml") : Unauthorized (HTTP 401).

omar-almolla209 avatar Mar 23 '23 10:03 omar-almolla209

What's probably going on is that you either don't have an institutional subscription to Scopus or that you're not making the request from an IP address that has a recognized subscription. That Unauthorized 401 error is probably due to the fact that Scopus doesn't recognize your computer's IP address as having a subscription to the full database. So either make the request from an institutional IP address (by signing in to VPN if you're offsite) or change the "content" argument in the searchByString() function to "standard". The latter option won't give you as much data as the default "complete" value, but it should at least give you something.

christopherBelter avatar Apr 19 '23 15:04 christopherBelter