Skip to content

Commit

Permalink
fix: lower default max_results
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisborn committed Feb 20, 2024
1 parent 06c553f commit c8e7d2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion paperscraper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Initialize the module."""

__name__ = "paperscraper"
__version__ = "0.2.10"
__version__ = "0.2.11"

import logging
import os
Expand Down
3 changes: 1 addition & 2 deletions paperscraper/pubmed/pubmed.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
def get_pubmed_papers(
query: str,
fields: List = ["title", "authors", "date", "abstract", "journal", "doi"],
max_results: int = 999999,
max_results: int = 9999,
*args,
**kwargs
) -> pd.DataFrame:
Expand All @@ -49,7 +49,6 @@ def get_pubmed_papers(
"""
raw = list(PUBMED.query(query, max_results=max_results, *args, **kwargs))

get_mails = "emails" in fields
if get_mails:
fields.pop(fields.index("emails"))
Expand Down

0 comments on commit c8e7d2f

Please sign in to comment.