A simple tool to generate your Google Scholar citation world map.
Project description
Google Scholar Citation World Map
Chen Liu, CS PhD Candidate (Machine Learning, MedicalVision, AI4Science) at Yale University.
Purpose
This is a simple Python tool to generate a HTML citation world map from your Google Scholar ID.
It is easy to install (pip install citation-map
, available on PyPI) and easy to use (see the Usage section).
Warning
- This script is a bit slow. On my personal computer, it takes half a minute to process each citation. If you have thousands of citations, it may or may not be a good idea to use this script.
- I tried to use multiprocessing, but unfortunately the excessive visits get me blocked by Google Scholar.
Expected Outcome
You will be given an HTML file as the output of the script. If you open it on a browser, you will see your own version of the following citation world map.
Usage
-
Install the package.
pip install citation-map
-
Find your Google Scholar ID.
- Open your Google Scholar profile. The URL should take the form of
https://scholar.google.com/citations?user=GOOGLE_SCHOLAR_ID
. In this case, your Google Scholar ID is just the stringGOOGLE_SCHOLAR_ID
. - Please kindly ignore configuration strings such as
&hl=en
(host language is English) or&sortby=pubdate
(sort the works by date of publication).
- Open your Google Scholar profile. The URL should take the form of
-
In an empty Python script (for example, the demo script), run the following.
from citation_map import generate_citation_map # This is my Google Scholar ID. Replace this with your ID. scholar_id = "3rDjnykAAAAJ" generate_citation_map(scholar_id)
You can take a look at additional input arguments of the function
generate_citation_map
(listed below) in case you need those functionalities.Parameters ---- scholar_id: str Your Google Scholar ID. use_proxy: bool If true, we will use a scholarly proxy. It is necessary for some environments to avoid blocks, but it usually makes things slower. pin_colorful: bool If true, the location pins will have a variety of colors. Otherwise, it will only have one color. output_path: str The path to the output HTML file.
Dependencies
scholarly
geopy
folium
tqdm
Acknowledgements
This script was written under the assistance of ChatGPT-4o, but of course after intense debugging.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for citation_map-1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3365f0772eaa820ed0375f8416488664592af7247f16f3a00a7cc7518b49eacf |
|
MD5 | 77bf280bca4839bf6fe95c7e0e8b58e0 |
|
BLAKE2b-256 | eb97ec78a12075c7b07468117313bc7318b6a7c577fc96fb2eb28d5b0c4b9a9e |