Closed yudeng2022 closed 1 year ago
@yudeng2022 thank you for your trust and for opening this issue 👍
Update: The answer is simple 😁Google itself doesn't return any results:
Are you sure you meant to do a Profile search instead of Organic results? Meaning instead of CustomGoogleScholarProfiles
use CustomGoogleScholarOrganic
?
Let me know if we can close this issue 🙂
Initial answer
Could you please tell:
Could you try running %pip install scrape-google-scholar-py
before imports? Although not sure if it makes a difference.
Running locally on Python 3.11 via VSCode Jyputer plugin from fresh virtual environment:
Worked without %pip install scrape-google-scholar-py
on a fresh environment:
Closing as Google itself doesn't return any results. Feel free to add additional info.
Hi dimitryzub, thank you for your reply! I meant to get all the results containing the keyword 'dynamic risk prediction'. also it seems the query only return 10 results (result from the first page). How can I get results from all returned pages?
@yudeng2022
I meant to get all the results containing the keyword 'dynamic risk prediction'
What do you mean by "all results containing the keyword 'dynamic risk prediction'"? All results from searching Google Scholar profiles? Could you please clarify or give an example Google Scholar link?
Thank you 👍
Hi Thank you for your reply! I tried to use the following code to get results
serpapi_parser_get_organic_results = SerpApiGoogleScholarOrganic().scrape_google_scholar_organic_results(
#query= '("longitudinal data" OR "repeated measurements" OR "longitudinal measurements" OR "time series data") AND ("cardiovascular disease prediction" OR "cardiovascular disease risk prediction" OR "prediction of cardiovascular disease")' ,
query='blizzard',
api_key='##myapikey##', # https://serpapi.com/manage-api-key
lang='en',
pagination=True,
)
However, I got the error message:
Do you know what caused it by any chance?
Hi Thank you for providing this package! I ran the following script but got nothing returned. Any idea what caused it?