A tool to monitor Google Scholar alerts and classify research papers using Perplexity AI.
- Connects to Gmail to fetch Google Scholar alert emails
- Uses Perplexity AI to parse and extract paper information
- Supports multiple research topics and keywords
- Sends notifications to Slack
- Clone the repository
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
(Unix) or.venv\Scripts\activate
(Windows) - Install dependencies:
pip install -r requirements.txt
- Copy
.env.example
to.env
and fill in your credentials - Copy
config.example.yml
toconfig.yml
and customize settings
Create a .env
file with:
[email protected]
GMAIL_PASSWORD=your-app-specific-password
PPLX_API_KEY=your-perplexity-api-key
Run the main script:
python scholar_classifier.py
To run the integration tests:
python -m unittest tests/test_integration.py -v
The integration tests require a test_config.yml
file in the tests/
directory with your Gmail credentials and settings. Example structure:
email:
username: [email protected]
password: your-app-specific-password # Gmail App Password, not your regular password
folder: "news &- papers/scholar" # IMAP folder where Scholar alerts are stored
Note:
- You'll need to create an App Password for Gmail
- The tests expect Google Scholar alert emails from December 23, 2024 in the specified folder
- Make sure your Scholar alerts are being properly filtered to the specified folder
MIT