Edu-Stats: Academic Statistics Parser (v.2.0.0)
Official academic profiles do not provide APIs to show the relevant statistics on the other websites (e.g. the personal websites).
Edu-Stats is a parser to extract the scholar details of academicians such as h-Index, citations, etc.
This code is developed by Kaveh Bakhtiyari.
This code is open-source, and it can be used for non-commercial purposes.
Legal DisclaimerThe end-user of this code should read the terms and conditions of the host provider (e.g. Google Scholar, Scopus, etc.), which he/she is trying to scrap its data, and they should follow their terms and coditions.
The developer(s) of this code do(es) not take any resposibility for misusing this code.
The end-users should monitor their requests to the servers in order to prevent any unnecessary traffic/attack on the target websites.
- ResearcherID function sometimes fails to load and parse the data.
Version Historyv2.0.0: 13 February 2018
Mendeley parser added.
Scopus function and variables rewritten.
v1.9.1: 24 April 2017
JSON output is added.
v1.9: 20 April 2017
PHP version is developed.
ResearchGate parser is removed.
Google Scholar bug is fixed.
Scopus bug is fixed.
v1.8: 8 April 2015
ResearchGate bug is fixed.
v1.7: 11 January 2015
ResearcherID parser is added.
v1.6: 10 January 2015
SSL (HTTPS) bug is fixed on Google Scholar.
v1.5: 6 January 2015
Prefix attribute is added for multi-extraction.
v1.0: 2 January 2015
Edu-Stats Supported Profiles
- Google Scholar
- Total Citations
- Total Documents
- Citation Documents
- Total Article Count
- Article Count for Metrics
- Average Citation
- Last Updated Date/Time
- Media Mentions
UsageThe script generator should be placed in the HEAD section of the HTML code as below:
The above code receives 3 optional query string parameters as below.
At least one of the parameters should be set.
Google Scholar Profile ID
In your profile URL (http://scholar.google.com/citations?user=7ftCdTQAAAAJ&hl=en), "user" value is the Profile ID.
Scopus Author ID
In your profile URL (http://www.scopus.com/authid/detail.url?authorId=54413825200), "authorId" value is the Profile ID.
In your profile URL (http://www.researcherid.com/rid/E-5776-2011), the last part of the URL is the id.
In your profile URL (https://www.mendeley.com/profiles/kaveh-bakhtiyari/stats/), the name part of the URL is the id. Make sure that the profile is publicly accessible in the privacy settings.
A prefix to be used for variables to differentiate different scholars.
10 alphanumeric characters.
This parameter generates JSON output for easier parsing, which is recommended for AJAX functions.
JSON does not support prefix parameter.
Variables & DemoPlease fill the following fields to test the demo version. At least one of the following fields should be completed.
Google Scholar ID: Scopus ID: ResearcherID ID: Mendeley ID:
"output" parameter generates JSON output which is suitable for parsing and AJAX functions. A sample JSON output is shown below:
For instance, in order to print the Google Scholar h-Index on a page, it is only required to write its variable on a page.
For instance, if the prefix has been set to "123abc", then Google h-Index variable would be changed as follows:
Source CodeYou can find the source code in Github repository at https://github.com/kavehbc/Edu-Stats.
In order to use the PHP edition, make sure to enable "php_curl.dll" and "php_openssl.dll" extensions in php.ini.
Copyright © 2018. Kaveh Bakhtiyari. All rights reserved.