Research Trends Scopus
A comprehensive Python package to retrieve research data from multiple academic databases, analyze publication trends, and generate interactive dashboards with actionable recommendations for research exploration.
🌐 Supported Data Sources
| Source | API Key | Coverage | Best For |
|---|---|---|---|
| OpenAlex | Not required | 250M+ works | General research (recommended) |
| Semantic Scholar | Optional | 200M+ papers | AI/ML research, citations |
| CrossRef | Not required | 150M+ DOIs | Metadata & DOI lookup |
| PubMed | Optional | 36M+ papers | Biomedical/life sciences |
| Scopus | Required | 90M+ records | Comprehensive citation data |
| Google Scholar | N/A (scraper) | Largest | Citation counts |
🚀 Features
- Multi-Source Data Retrieval: Fetch from OpenAlex, Scopus, Semantic Scholar, CrossRef, PubMed, and Google Scholar
- Unified Interface: Single API to query multiple databases with automatic fallback and deduplication
- Trend Analysis: Analyze publication trends over time, by author, institution, and topic
- Network Analysis: Visualize collaboration networks and citation patterns
- Topic Modeling: Discover emerging research themes using NLP techniques
- Interactive Dashboard: Generate beautiful dashboards using Plotly and Dash
- Smart Recommendations: Get AI-powered suggestions for research areas to explore
- Caching: Built-in caching to minimize API calls and improve performance
- Export: Export data and visualizations in multiple formats
📦 Installation
From PyPI
pip install research-trends-scopus
With optional dependencies
# For development
pip install research-trends-scopus[dev]
# For documentation
pip install research-trends-scopus[docs]
# For Jupyter notebook support
pip install research-trends-scopus[notebook]
# Install all optional dependencies
pip install research-trends-scopus[all]
From source
git clone https://github.com/research-trends/research-trends-scopus.git
cd research-trends-scopus
pip install -e ".[all]"
⚙️ Configuration
API Keys (Optional for most sources)
Most data sources work without API keys. Only Scopus requires an API key.
For Scopus (optional):
export SCOPUS_API_KEY="your-api-key-here"
For Semantic Scholar (optional, increases rate limits):
export S2_API_KEY="your-api-key-here"
.env file:
SCOPUS_API_KEY=your-api-key-here
S2_API_KEY=your-optional-s2-key
🎯 Quick Start
Using OpenAlex (Recommended - No API Key Required)
from research_trends import OpenAlexClient, TrendAnalyzer, Dashboard
# Initialize the client (no API key needed!)
client = OpenAlexClient(email="your@email.com") # email for polite pool
# Search for publications
results = client.search(
query="machine learning healthcare",
from_year=2020,
max_results=500
)
# Analyze trends
analyzer = TrendAnalyzer(results.publications)
trends = analyzer.analyze()
# Launch interactive dashboard
dashboard = Dashboard(analyzer)
dashboard.run(port=8050)
Multi-Source Search with UnifiedClient
from research_trends import UnifiedClient, DataSource, TrendAnalyzer
# Initialize unified client
unified = UnifiedClient()
# Search multiple sources at once
multi_results = unified.search_multiple(
query="deep learning",
sources=[DataSource.OPENALEX, DataSource.SEMANTIC_SCHOLAR],
max_results=100
)
# Merge and deduplicate results
publications = multi_results.merge_deduplicated()
print(f"Found {len(publications)} unique publications from multiple sources")
# Search with automatic fallback
results = unified.search_with_fallback(
query="quantum computing",
sources=[DataSource.SCOPUS, DataSource.OPENALEX, DataSource.CROSSREF],
max_results=200
)
Individual Clients
from research_trends import (
OpenAlexClient, # 250M+ works, free
SemanticScholarClient, # 200M+ papers, free
CrossRefClient, # 150M+ DOIs, free
PubMedClient, # 36M+ biomedical, free
ScopusClient, # 90M+ records, requires API key
GoogleScholarClient # Largest, web scraper
)
# Semantic Scholar (great for AI/ML research)
s2 = SemanticScholarClient()
papers = s2.search("transformer architecture", max_results=100)
# CrossRef (great for DOI lookups)
crossref = CrossRefClient()
paper = crossref.get_work_by_doi("10.1038/nature12373")
# PubMed (great for biomedical research)
pubmed = PubMedClient()
results = pubmed.search("CRISPR gene editing", max_results=50)
Using Scopus (Requires API Key)
from research_trends import ScopusClient, TrendAnalyzer, Dashboard
# Initialize the client
client = ScopusClient() # Uses SCOPUS_API_KEY from environment
# Search for publications
publications = client.search(
query="machine learning healthcare",
start_year=2020,
end_year=2025,
max_results=1000
)
# Analyze trends
analyzer = TrendAnalyzer(publications)
trends = analyzer.analyze()
recommendations = analyzer.get_recommendations()
# Launch interactive dashboard
dashboard = Dashboard(analyzer)
dashboard.run(port=8050)
Command Line Interface
# Search and analyze
research-trends search "artificial intelligence" --years 2020-2025 --output results.json
# Generate dashboard
research-trends dashboard results.json --port 8050
# Get recommendations
research-trends recommend results.json --top 10
📊 Dashboard Features
The interactive dashboard includes:
- Publication Timeline: Track publication volume over time
- Author Analysis: Identify top authors and their productivity
- Institution Rankings: Compare research output by institution
- Geographic Distribution: World map of research activity
- Keyword Trends: Track emerging keywords and topics
- Citation Analysis: Analyze citation patterns and impact
- Collaboration Network: Interactive network visualization
- Topic Clusters: Discover research themes and clusters
📈 Analysis Capabilities
Trend Analysis
- Publication count trends
- Citation trends
- Author productivity trends
- Keyword emergence patterns
Network Analysis
- Co-authorship networks
- Citation networks
- Institutional collaboration networks
Topic Modeling
- Keyword extraction
- Topic clustering
- Emerging topic detection
Recommendations
- Underexplored research areas
- Potential collaboration opportunities
- High-impact journals for publication
- Trending research directions
📚 Documentation
Full documentation is available at https://research-trends-scopus.readthedocs.io
🧪 Examples
Check out the examples directory for:
- Jupyter notebooks with step-by-step tutorials
- Sample analyses for different research domains
- Dashboard customization examples
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details on:
- Code of conduct
- Development setup
- Submitting pull requests
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- OpenAlex - Free, open catalog of scholarly papers
- Semantic Scholar - AI-powered research tool
- CrossRef - DOI registration agency
- PubMed/NCBI - Biomedical literature database
- Elsevier for the Scopus API
- The open-source Python community
📬 Contact
- Issues: GitHub Issues
- Email: research-trends@example.com
Metadata
Release files for research-trends-scopus 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| research_trends_scopus-0.2.3.tar.gz | 61.9 kB | Without provenance | Details for research_trends_scopus-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| research_trends_scopus-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for research_trends_scopus-0.2.3-py3-none-any.whl |
Total release size: 126.6 kB
Release files / research_trends_scopus-0.2.3.tar.gz
| Download URL | research_trends_scopus-0.2.3.tar.gz |
|---|---|
| Size | 61.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd1a67f3162920a13e76575b2d1c6647b4e74595cb9753e6691c4c5c8acb1864
|
|
BLAKE2b-256 checksum How to use checksums |
7ef5746e986590fde51b5499edfce1a6c26462c6484a9c7841ba680a8bccb1e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / research_trends_scopus-0.2.3-py3-none-any.whl
| Download URL | research_trends_scopus-0.2.3-py3-none-any.whl |
|---|---|
| Size | 64.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8de40257f2fccd2a8f1a975317766218499a738dcf30f0cd7d4fd71a4169d73
|
|
BLAKE2b-256 checksum How to use checksums |
8c6f877dd1ed800997966d51b5575548f55175a245b6259317476b064fc2f10c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for research-trends-scopus 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.