clarivate / wos-amr

Utility scripts for using the Web of Science Links Article Match Retrieval Service (AMR) service.
MIT License
17 stars 3 forks source link

Update to Python3? #1

Closed cdbavg400 closed 6 years ago

cdbavg400 commented 6 years ago

Is there any chance you could update these files to python3? It is what I have installed on my computer here, and there are enough differences that I have not been able to make all of them myself without running into some errors. For instance, the urllib.Request changes have been most significant in python3.

gneissone commented 6 years ago

@cdbavg400 I have pushed a new branch that has been updated to use Python 3. https://github.com/Clarivate-SAR/wos-amr/tree/python3

Please give it a try and let me know if you have issues.

cdbavg400 commented 6 years ago

@gneissone : Thank you for addressing this.

So I cannot figure out why, but when I run the lookup_ids.py script, the output.csv file is blank. The header row is there, but no data rows. I have checked the input file several times with numerous valid DOIs, and the output is still blank. For example:

Input: 1)image

2)image

Output (same in both cases): image

EDIT: I just tested the issns_to_jcr.py script using the included example files, and I am getting the same problem there. An empty csv file with just the header row written.

gneissone commented 6 years ago

I tried with your 1st example and got a result. Are you sure the credentials are correct? The scripts will fail silently... paste print(response.text) after line 45 in client.py, rerun the script and let me know what response you see in your shell.

cdbavg400 commented 6 years ago

You are correct. There is an issue with my access. I am getting the following xml:

<?xml version="1.0" encoding="UTF-8" ?>
<response xmlns="http://www.isinet.com/xrpc41" src="app.id=InternalVIVODemo">
<fn name="LinksAMR.retrieve" rc="Server.authentication">
<error code="Server.authentication">No matches returned for UserName "EPAwsp_HG"</error>
</fn>
</response>

Unless you can help with this issue, I will email my contacts at Clarivate and hopefully get a response soon. Thank you for your help.

gneissone commented 6 years ago

Please reach out to your Clarivate account manager or via the contact us form on clarivate.com for entitlements inquires.

CamAnNguyen commented 6 years ago

Sorry for bumping this up, I am having a problem with my credential as well. Is the username the email which I used to login into the Web of Science (https://webofknowledge.com)?

gneissone commented 6 years ago

@CamAnNguyen APIs require a separate username and password. Please reach out to your Clarivate account manager or via the contact form on clarivate.com if you do not already have API access.