def __init__(self, author_id, refresh=False, refresh_aff=False, level=1):
        """Class to represent a Scopus Author query by the scopus-id.

        Parameters
        ----------
        author_id : str or int
            The ID of the author to search for.  Optionally expressed
            as an Elsevier EID (i.e., in the form 9-s2.0-nnnnnnnn).

        refresh : bool (optional, default=False)
            Whether to refresh the cached file (if it exists) or not.

        refresh_aff : bool (optional, default=False)
            Whether to refresh the cached corresponding affiliation views
            (if they exist) or not.

        level : int (optional, default=1)
            Number of * to print in property __str__.

        Notes
        -----
        The files are cached in ~/.scopus/author/{author_id} (without
        eventually leading '9-s2.0-').
        """
        if config.getboolean('Warnings', 'Author'):
            text = config.get('Warnings', 'Text').format('AuthorRetrieval')
            warnings.warn(text, DeprecationWarning)
            config.set('Warnings', 'Author', '0')
        author_id = str(int(str(author_id).split('-')[-1]))
        self.level = level

        qfile = os.path.join(SCOPUS_AUTHOR_DIR, author_id)
        url = ('https://api.elsevier.com/content/author/'
               'author_id/{}').format(author_id)
        params = {'author_id': author_id, 'view': 'ENHANCED'}
        self.xml =  ET.fromstring(get_content(qfile, url=url, refresh=refresh,
                                              params=params))
def __init__ ( self , author_id , refresh = False , refresh_aff = False , level = 1 ) : if config . getboolean ( 'Warnings' , 'Author' ) : text = config . get ( 'Warnings' , 'Text' ) . format ( 'AuthorRetrieval' ) warnings . warn ( text , DeprecationWarning ) config . set ( 'Warnings' , 'Author' , '0' ) author_id = str ( int ( str ( author_id ) . split ( '-' ) [ - 1 ] ) ) self . level = level qfile = os . path . join ( SCOPUS_AUTHOR_DIR , author_id ) url = ( 'https://api.elsevier.com/content/author/' 'author_id/{}' ) . format ( author_id ) params = { 'author_id' : author_id , 'view' : 'ENHANCED' } self . xml = ET . fromstring ( get_content ( qfile , url = url , refresh = refresh , params = params ) )
Class to represent a Scopus Author query by the scopus-id.

        Parameters
        ----------
        author_id : str or int
            The ID of the author to search for.  Optionally expressed
            as an Elsevier EID (i.e., in the form 9-s2.0-nnnnnnnn).

        refresh : bool (optional, default=False)
            Whether to refresh the cached file (if it exists) or not.

        refresh_aff : bool (optional, default=False)
            Whether to refresh the cached corresponding affiliation views
            (if they exist) or not.

        level : int (optional, default=1)
            Number of * to print in property __str__.

        Notes
        -----
        The files are cached in ~/.scopus/author/{author_id} (without
        eventually leading '9-s2.0-').