@@ -0,0 +1,840 @@
+import requests%0A%0Aclass ScopusClient(object):%0A    def __init__(self, apiKey):%0A        self.apiKey = apiKey%0A%0A    def authorSearch(self, query):%0A        resp = requests.get('http://api.elsevier.com/content/search/author',%0A                            %7B'apiKey': self.apiKey,%0A                             'query': query,%0A                             'suppressNavLinks': 'true'%7D)%0A        return resp.json()%0A%0A    def author_ids(self, first, last, affil, subjabbr):%0A        resp = self.authorSearch(%0A                'authlast(%25s) AND authfirst(%25s) AND affil(%25s) AND subjabbr(%25s)'%0A                %25 (last, first, affil, subjabbr))%0A        if int(resp%5B'search-results'%5D%5B'opensearch:totalResults'%5D) == 0:%0A            return %5B%5D%0A        return %5Bentry.get('dc:identifier', ':').split(':')%5B1%5D%0A                for entry in resp%5B'search-results'%5D%5B'entry'%5D%5D%0A

add scopus API client