Utility Flags¶
Complete documentation for utility and configuration flags
Table of Contents¶
- History & Cache
- Profile Management
- Template Management
- Custom API Management
- PDF Configuration
- Reference Manager Configuration
- Help & Examples
History & Cache¶
-H, --history¶
Description: Show search history.
Syntax:
Type: Boolean flag
Storage: ~/.lixplore_history.json
History Includes: - Timestamp - Query string - Sources searched - Result count
Examples¶
Example 1: View History
Output:
SEARCH HISTORY (15 searches)
[1] 2024-12-28 14:30:15 (2 hours ago)
Query: machine learning
Sources: PubMed, Crossref
Results: 95
[2] 2024-12-27 09:15:42 (1 day ago)
Query: COVID-19 AND vaccine
Sources: All sources
Results: 247
--refresh¶
Description: Bypass cache and fetch fresh results.
Syntax:
Type: Boolean flag
Cache Duration: 7 days (default)
Examples¶
Example 1: Fresh Search
Example 2: Update Cached Search
Profile Management¶
--save-profile¶
Description: Save current export settings as reusable profile.
Syntax:
Storage: ~/.lixplore/profiles/
Examples¶
Example 1: Save Profile
--load-profile¶
Description: Load previously saved export profile.
Syntax:
Examples¶
Example 1: Load Profile
--list-profiles¶
Description: List all saved export profiles.
Syntax:
Examples¶
Example 1: View Profiles
Output:
Saved export profiles:
• quick_export
Format: xlsx
Fields: title, authors, year
• comprehensive
Format: csv,ris,bibtex
Citation: apa
--delete-profile¶
Description: Delete saved export profile.
Syntax:
Examples¶
Example 1: Delete Profile
Template Management¶
--list-templates¶
Description: List all available export templates.
Syntax:
Built-in Templates: nature, science, ieee
Examples¶
Example 1: View Templates
Output:
Available export templates:
• nature
Format: xlsx
Description: Nature journal format
• science
Format: csv
Description: Science journal format
• ieee
Format: bibtex
Description: IEEE citation format
Custom API Management¶
--list-custom-apis¶
Description: List all configured custom API sources.
Syntax:
Examples¶
Example 1: View Custom APIs
Output:
Configured custom API sources:
• springer
Springer Nature API
Requires authentication
• base
Bielefeld Academic Search Engine
--create-api-examples¶
Description: Create example custom API configurations.
Syntax:
Creates: ~/.lixplore/custom_apis.json with templates
Examples¶
Example 1: Setup API Templates
Output:
Created example API configurations in ~/.lixplore/custom_apis.json
Example APIs: Springer, BASE, IEEE (templates only)
Edit the file and add your API keys to enable.
Configuration File:
{
"springer": {
"name": "Springer",
"base_url": "https://api.springernature.com/meta/v2/json",
"api_key_param": "api_key",
"query_param": "q",
"requires_auth": true,
"api_key": "YOUR_KEY_HERE"
}
}
PDF Configuration¶
--set-scihub-mirror¶
Description: Configure SciHub mirror URL for PDF downloads.
Syntax:
Storage: ~/.lixplore/config.json
Examples¶
Example 1: Configure SciHub
Example 2: Update Mirror
Common Mirrors: - https://sci-hub.se - https://sci-hub.st - https://sci-hub.ru
Disclaimer: Use SciHub responsibly and at your own discretion. Check your institution's policies.
--show-pdf-dir¶
Description: Show PDF download directory location and statistics.
Syntax:
PDF Directory: ~/Lixplore_PDFs/
Examples¶
Example 1: Check PDF Directory
Output:
Reference Manager Configuration¶
--configure-zotero¶
Description: Configure Zotero API access credentials.
Syntax:
Storage: ~/.lixplore/zotero_config.json
Setup Process¶
Step 1: Get API Credentials 1. Visit: https://www.zotero.org/settings/keys 2. Create new private key with read/write access 3. Note your User ID (numeric, in settings)
Step 2: Configure Lixplore
Examples¶
Example 1: Initial Setup
Output:
Zotero API configured successfully!
API Key: ABC123...789
User ID: 1234567
Test connection...
✓ Connection successful
✓ Library accessible (142 items)
You can now use:
--add-to-zotero
--show-zotero-collections
--show-zotero-collections¶
Description: List Zotero collections with their keys.
Syntax:
Requires: Zotero API configuration
Examples¶
Example 1: List Collections
Output:
Zotero Collections:
[1] My Library (root)
Key: N/A (use without --zotero-collection)
[2] PhD Research
Key: ABC123DEF
Items: 45
[3] Literature Review
Key: GHI789JKL
Items: 127
[4] Methodology Papers
Key: MNO456PQR
Items: 23
Use collection key with:
lixplore -P -q "query" --add-to-zotero --zotero-collection ABC123DEF
Help & Examples¶
--examples¶
Description: Show quick examples (tldr-style) and exit.
Syntax:
Type: Boolean flag
Examples¶
Example 1: View Examples
Output:
LIXPLORE - Quick Examples
BASIC SEARCH
Search PubMed:
$ lixplore -P -q "cancer treatment" -m 10
MULTI-SOURCE SEARCH
Search all sources with deduplication:
$ lixplore -A -q "COVID-19" -m 50 -D
EXPORT
Export to Excel:
$ lixplore -P -q "diabetes" -m 20 -X xlsx
[... more examples ...]
Configuration Files¶
File Locations¶
~/.lixplore/
├── config.json # General configuration
├── profiles/ # Saved export profiles
│ ├── quick_export.json
│ └── comprehensive.json
├── custom_apis.json # Custom API configurations
├── zotero_config.json # Zotero credentials
└── templates/ # Custom export templates
└── custom_template.json
~/.lixplore_cache.json # Search results cache
~/.lixplore_history.json # Search history
~/.lixplore_annotations.json # Article annotations
Manual Configuration¶
Edit Configuration:
# Main config
nano ~/.lixplore/config.json
# Custom APIs
nano ~/.lixplore/custom_apis.json
# Zotero
nano ~/.lixplore/zotero_config.json
Clear Cache:
Clear History:
Backup Annotations:
Best Practices¶
1. Regular Profile Management¶
# Save commonly used workflows
lixplore -P -q "test" -X xlsx --export-fields title authors year --save-profile standard_export
# List profiles periodically
lixplore --list-profiles
# Clean up unused profiles
lixplore --delete-profile old_profile
2. API Key Security¶
DO:
- Store API keys in configuration files
- Use environment variables for sensitive keys
- Restrict file permissions: chmod 600 ~/.lixplore/zotero_config.json
DON'T: - Share configuration files publicly - Commit API keys to version control - Use shared credentials
3. Cache Management¶
# Use cache for speed (default)
lixplore -P -q "query" -m 20
# Bypass cache when needed
lixplore -P -q "latest news" -m 10 --refresh
# Review from cache
lixplore -R 1 2 3 # Uses cached results
4. History Tracking¶
# Review recent searches
lixplore --history
# Reproduce previous search
# Copy query from history and re-run
lixplore -P -q "exact query from history" -m 50
Troubleshooting¶
Problem: Zotero connection fails¶
Solution: Verify credentials
# Reconfigure
lixplore --configure-zotero NEW_API_KEY NEW_USER_ID
# Test connection
lixplore --show-zotero-collections
Problem: Custom API not working¶
Solution: Check configuration
# List configured APIs
lixplore --list-custom-apis
# Recreate examples
lixplore --create-api-examples
# Edit and verify
nano ~/.lixplore/custom_apis.json
Problem: Cache issues¶
Solution: Clear and refresh
# Remove cache
rm ~/.lixplore_cache.json
# Force fresh search
lixplore -P -q "query" -m 20 --refresh
Problem: Profile not loading¶
Solution: List and verify
# List profiles
lixplore --list-profiles
# Check profile exists
ls ~/.lixplore/profiles/
# Delete and recreate
lixplore --delete-profile problematic_profile
lixplore -P -q "test" -X xlsx --save-profile new_profile
Last Updated: 2024-12-28