Skip to content

Commit

Permalink
Update search.py
Browse files Browse the repository at this point in the history
changed examples to as lit instead
  • Loading branch information
CecSve authored Nov 15, 2024
1 parent 620c665 commit 3199c93
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pygbif/literature/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3199c93

Please sign in to comment.