Control data sources using the databases parameter
mainThe databases parameter allows you to specify which backends engine.get() should consult. By default (None), it uses all available sources and merges the results.
Use specific lists to optimize for speed or specific metadata types:
- CrossRef only: Fast, authoritative structured metadata.
- Web scraping + OpenAlex: Scrapes the landing page and enriches it via OpenAlex.
- Web scraping only: Fetches from a URL without any API-based enrichment.
# CrossRef only
paper = engine.get("10.1038/nature12373", databases=["crossref"])
# Web scraping + OpenAlex
paper = engine.get("10.1038/nature12373", databases=["web_scraping", "crossref", "openalex"])
# Web scraping only
paper = engine.get("https://arxiv.org/abs/1706.03762", databases=["web_scraping"])