auto_research.search.data_retrival module
- download_pdf(url, filename, folder=None, timeout=10)[source]
Downloads a PDF file from the specified URL and saves it to the given filename and folder.
- Parameters:
- Returns:
True if the download was successful and the file is not corrupted, False otherwise.
- Return type:
Example
>>> download_pdf("http://example.com/sample.pdf", "sample.pdf", folder="pdfs") Downloaded: sample.pdf True
- get_paper_details_from_semantic_scholar(title, verbose=False)[source]
Retrieves paper details (abstract and venue) from Semantic Scholar based on the paper title.
- Parameters:
- Returns:
- A tuple containing the abstract and venue of the paper.
Returns None if no data is found or if an error occurs.
- Return type:
Example
>>> get_paper_details_from_semantic_scholar("Attention is All You Need") ("Abstract text...", "NeurIPS")
- get_arxiv_paper_details(title)[source]
- Retrieves paper details (title, abstract, PDF link, and venue) from arXiv based on the paper
title.
- Parameters:
title (str) – The title of the paper to search for.
- Returns:
- A tuple containing the paper title, abstract, PDF
link,and venue. Returns None if no data is found.
- Return type:
Example
>>> get_arxiv_paper_details("Attention is All You Need") ("Attention is All You Need", "Abstract text...", "http://arxiv.org/pdf/...", "arXiv")