From 5bc4891d2722343f98e67ebd256b188c4a3519e1 Mon Sep 17 00:00:00 2001 From: James Braza Date: Thu, 2 Nov 2023 02:27:00 -0700 Subject: [PATCH] Better DOI term snippet, 3.7+ testing docs (#29) * Expanded examples of DOI existence checks * Removed try-except added --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 12f188d..4b26c0b 100644 --- a/README.md +++ b/README.md @@ -269,7 +269,7 @@ When searching GWAS catalog PMID is needed over DOI. You can covert one to the o ```python def doi_term(doi: str) -> str: - """Prepare DOI for PubMed search""" + """Clean a DOI string by removing URL prefix.""" doi = ( doi .replace('http://', 'https://') @@ -283,27 +283,26 @@ result = entrez_api.search( database='pubmed', max_results=1 ) -result.data['esearchresult']['idlist'] +print(result.data['esearchresult']['idlist']) ``` > `['33834021']` ### Installation -Requires Python 3.6+. Install with: - +Requires Python 3.6+ (though only 3.7+ is tested). Install with: ```bash pip install easy-entrez ``` -If you wish to enable (optional, tqdm-based) progress bars use: +If you wish to enable (optional, `tqdm`-based) progress bars use: ```bash pip install easy-entrez[with_progress_bars] ``` -If you wish to enable (optional, pandas-based) parsing utilities use: +If you wish to enable (optional, `pandas`-based) parsing utilities use: ```bash pip install easy-entrez[with_parsing_utils]