test-scopus2.py 651 B

1234567891011121314151617181920212223242526272829303132
  1. import requests
  2. import json
  3. from ak_scopus import get_scopus_list, get_scopus_data, get_scopus_refs
  4. from config import *
  5. #
  6. # Script to check all the afiliations of the authors
  7. #
  8. #url = "http://api.elsevier.com/content/search/scopus?query=AU-ID(%s)&field=dc:identifier&count=10" % micheleCaselle
  9. #resp = requests.get(url, headers={'Accept':'application/json',
  10. # 'X-ELS-APIKey': MY_API_KEY})
  11. results = get_scopus_list([micheleCaselle], '', 10)
  12. for pub in results:
  13. data = get_scopus_data(pub[0])
  14. print data
  15. # Todo: Implement filter to show Michele and its affiliation id !!!
  16. #results = resp.json()
  17. print results