download_dblp
Check PDF availability for dblp papers and receive guidance on alternative access methods when direct download is not supported.
Instructions
Download PDF for a paper from dblp.
Note: dblp doesn't provide direct PDF access. This function returns an informative message.
Args: paper_id: dblp paper identifier. save_path: Directory to save the PDF (default: './downloads'). Returns: str: Message indicating that direct PDF download is not supported.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paper_id | Yes | ||
| save_path | No | ./downloads |
Implementation Reference
- paper_search_mcp/server.py:1066-1078 (handler)The download_dblp handler in server.py calls the DBLPSearcher.download_pdf method.
async def download_dblp(paper_id: str, save_path: str = "./downloads") -> str: """Download PDF for a paper from dblp. Note: dblp doesn't provide direct PDF access. This function returns an informative message. Args: paper_id: dblp paper identifier. save_path: Directory to save the PDF (default: './downloads'). Returns: str: Message indicating that direct PDF download is not supported. """ return dblp_searcher.download_pdf(paper_id, save_path) - The DBLPSearcher.download_pdf method, which is invoked by the download_dblp handler, raises a NotImplementedError as dblp does not support direct PDF downloads.
def download_pdf(self, paper_id: str, save_path: str) -> str: """ Download PDF for a dblp paper. Note: dblp doesn't provide direct PDF access. This method tries to find PDF through DOI or other sources. Args: paper_id: dblp paper identifier save_path: Directory to save the PDF Returns: Path to the saved PDF file Raises: NotImplementedError: dblp doesn't support direct PDF downloads """ raise NotImplementedError( "dblp doesn't provide direct PDF access. " "Use DOI to download from other sources (Crossref, publisher sites, etc.)." )