Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get complete info from affiliation #8

Closed
miltonlab opened this issue Mar 1, 2017 · 6 comments
Closed

Get complete info from affiliation #8

miltonlab opened this issue Mar 1, 2017 · 6 comments

Comments

@miltonlab
Copy link

Hi friends, i need get complete Author data for publications retrieved from Affiliation query, buy i not found author atributes how can i do it?

Affiliation example

...: # Initialize affiliation with ID as string
...: my_aff = ElsAffil(affil_id = '60101411')
...: if my_aff.read(client):
...:     print ("my_aff.name: ", my_aff.name)
...:     my_aff.write()
...: else:
...:     print ("Read affiliation failed.")
...: 

my_aff.name: American Institute of Steel Construction

In [20]: ## Affiliation example

@ale-de-vries
Copy link
Contributor

ale-de-vries commented Mar 2, 2017

Try this:

# Initiate affiliation object
my_aff = ElsAffil(affil_id = '60101411')

# read all the documents for this affiliation. NOTE: requires elevated APIkey permissions
my_aff.read_docs(client)

# print, for each document read in the previous statement, Scopus ID and list of authors (list of authors
#  apparently being what you are after)
for doc in my_aff.doc_list:
    print (doc['dc:title'], doc['dc:identifier'], doc['authors'])

The .read_docs() method requires elevated permissions for your APIkey. Assuming you are based at an institution that has a Scopus subscription, you can request those permissions by contacting integrationsupport at elsevier dot com.

@miltonlab
Copy link
Author

Thanks @ale-de-vries but always doc_list return None, i have 25 ElsAffil objetcs but read_docs not load nothing
print(aff.doc_list)

<elsapy.elsprofile.ElsAffil object at 0x7fd3a23bd668>
None
108285489
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdf60>
None
106297641
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23bd2b0>
None
104801464
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdeb8>
None
113691135
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23bd668>
None
104801461
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdf60>
None
104801465
<elsapy.elsprofile.ElsAffil object at 0x7fd3a1b4a2b0>
None
115389726
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdeb8>
None
108283536
<elsapy.elsprofile.ElsAffil object at 0x7fd3a1b4aa20>
None
108097746
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdf60>
None
114454792
<elsapy.elsprofile.ElsAffil object at 0x7fd3a1b460b8>
None
115321907
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cd048>
None
115389725
<elsapy.elsprofile.ElsAffil object at 0x7fd3a1b40fd0>
None
115547876
<elsapy.elsprofile.ElsAffil object at 0x7fd3a23cdf28>
None
116064452
<elsapy.elsprofile.ElsAffil object at 0x7fd3a1b40eb8>
None

@ale-de-vries
Copy link
Contributor

ale-de-vries commented Mar 7, 2017

Apologies for the late reply.
Check your log file (/logs/elsapy-YYYYMMDD.log) for details. If you see an error like this:

HTTP 400 Error from https://api.elsevier.com/content/affiliation/AFFILIATION_ID/116064452?view=documents
with
{"service-error":{"status":{"statusCode":"INVALID_INPUT","statusText":"View parameter entered is not valid for this service"}}}

... then it is likely the aforementioned permission problem. Again, assuming you are based at an institution that has a Scopus subscription, you can request those permissions by contacting integrationsupport at elsevier dot com.

@miltonlab
Copy link
Author

Exactly @ale-de-vries , if my institution don't have Scopus suscription, can i request a test subscription for access this service by API?

@ale-de-vries
Copy link
Contributor

I'm afraid you'll have to contact your institution's library for that. Scopus does not have an individual subscription model, and trials are only granted to institutions.

@raffaem
Copy link

raffaem commented Mar 27, 2020

@ale-de-vries Some people have this problem (see #52 and #50). I have tried to contact integrationsupport at elsevier dot com but then told me they don't have to do anything to have the API working. How can we solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants