Skip to content

Instantly share code, notes, and snippets.

@dimitryzub
Last active May 19, 2021 06:38
Show Gist options
  • Save dimitryzub/c031586b869d79304d5e6fb4a3bae439 to your computer and use it in GitHub Desktop.
Save dimitryzub/c031586b869d79304d5e6fb4a3bae439 to your computer and use it in GitHub Desktop.
Scrape Google Scholar Author Results with SerpApi
from serpapi import GoogleSearch
import os
params = {
"api_key": os.getenv("API_KEY"),
"engine": "google_scholar_author",
"author_id": "9PepYk8AAAAJ",
"hl": "en",
}
search = GoogleSearch(params)
results = search.get_dict()
name = results['author']['name']
affiliations = results['author']['affiliations']
email = results['author']['email']
interests1 = results['author']['interests'][0]['title']
interests2 = results['author']['interests'][1]['title']
print(f'{name}\n{affiliations}\n{email}\n{interests1}\n{interests2}')
# Output:
'''
Jun-Youn Kim
Samsung
Verified email at plesseysemi.com
micro led
GaN power device
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment