scholarly-python-package / scholarly

Retrieve author and publication information from Google Scholar in a friendly, Pythonic way without having to worry about CAPTCHAs!
https://scholarly.readthedocs.io/
The Unlicense
1.42k stars 304 forks source link

Email is returned by search_author, but not search_author_id #176

Closed cunov closed 3 years ago

ipeirotis commented 3 years ago

Code that replicates the issue:


from scholarly import scholarly

author = next(scholarly.search_author('Sebastian Lapuschkin'))

scholarly.pprint(author)

author = scholarly.search_author_id('wpLQuroAAAAJ')

scholarly.pprint(author)

returns

{'affiliation': 'Postdoctoral Research Associate, Fraunhofer Heinrich Hertz '
                'Institute',
 'citedby': 3568,
 'email_domain': '@hhi.fraunhofer.de',
 'filled': False,
 'interests': ['Interpretability',
               'Explainable AI',
               'Machine Learning',
               'Artificial Intelligence',
               'Deep Learning'],
 'name': 'Sebastian Lapuschkin (né Bach)',
 'scholar_id': 'wpLQuroAAAAJ',
 'source': 'SEARCH_AUTHOR_SNIPPETS',
 'url_picture': 'https://scholar.google.com/citations?view_op=medium_photo&user=wpLQuroAAAAJ'}

{'affiliation': 'Postdoctoral Research Associate, Fraunhofer Heinrich Hertz '
                'Institute',
 'filled': False,
 'interests': ['Interpretability',
               'Explainable AI',
               'Machine Learning',
               'Artificial Intelligence',
               'Deep Learning'],
 'name': 'Sebastian Lapuschkin (né Bach)',
 'scholar_id': 'wpLQuroAAAAJ',
 'source': 'AUTHOR_PROFILE_PAGE',
 'url_picture': 'https://scholar.googleusercontent.com/citations?view_op=view_photo&user=wpLQuroAAAAJ&citpid=10'}
ipeirotis commented 3 years ago

Fixed in v.1.0.3