From 3199c93b927e739d5d10208e0dd5568d6c995fe8 Mon Sep 17 00:00:00 2001 From: Cecilie Svenningsen <54532645+CecSve@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:13:43 +0100 Subject: [PATCH] Update search.py changed examples to as lit instead --- pygbif/literature/search.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pygbif/literature/search.py b/pygbif/literature/search.py index f9d5ee1..b1e3fd6 100644 --- a/pygbif/literature/search.py +++ b/pygbif/literature/search.py @@ -82,17 +82,17 @@ def search( Usage:: - from pygbif import literature - literature.search(limit=10) # basic search for 10 records + from pygbif import literature as lit + lit.search(limit=10) # basic search for 10 records # search for a specific download key - literature.search(gbifDownloadKey="0235283-220831081235567") + lit.search(gbifDownloadKey="0235283-220831081235567") # search for a year range - literature.search(year="2010,2024", limit=10) + lit.search(year="2010,2024", limit=10) # search for count only - literature.search(year="2010,2024", limit=0)["count"] + lit.search(year="2010,2024", limit=0)["count"] """ url = gbif_baseurl + "literature/search" args = {