| Crates.io | scholar_cli |
| lib.rs | scholar_cli |
| version | 0.1.2 |
| created_at | 2025-05-11 02:21:13.803816+00 |
| updated_at | 2025-05-11 02:51:45.896565+00 |
| description | A command-line tool for accessing Google Scholar data using SerpApi |
| homepage | |
| repository | https://github.com/chriscarrollsmith/scholar_cli |
| max_upload_size | |
| id | 1669017 |
| size | 87,440 |
A command-line tool for accessing Google Scholar data using SerpApi.
The easiest way to install is directly from crates.io:
cargo install scholar_cli
Alternatively, you can build from source:
Install Rust and Cargo
Clone this repository
git clone https://github.com/chriscarrollsmith/scholar_cli.git
cd scholar_cli
Build the project
cargo build --release
The binary will be available at target/release/scholar_cli
You can provide your SerpApi API key in one of three ways:
Store it persistently in your config file:
scholar_cli config set-key YOUR_API_KEY
As a command-line parameter:
scholar_cli --api-key YOUR_API_KEY <command>
As an environment variable:
export SERPAPI_API_KEY=YOUR_API_KEY
scholar_cli <command>
You can also create a .env file in the directory where you run the command:
SERPAPI_API_KEY=YOUR_API_KEY
To view your current configuration:
scholar_cli config show
scholar_cli search --query "machine learning" --num 5
Additional options:
--start-year: Filter for papers published after this year--end-year: Filter for papers published before this year--lang: Specify language (default: "en")scholar_cli profiles --mauthors "Andrew Ng"
scholar_cli author --author-id "IY53lNkAAAAJ"
scholar_cli cite --q "10.1126/science.aaa8415"
Search for recent papers on climate change:
scholar_cli search --query "climate change" --start-year 2020
MIT