Skip to content

Commit

Permalink
Merge pull request #57 from blackadad/single-google-result
Browse files Browse the repository at this point in the history
Allow single results
  • Loading branch information
mskarlin authored Apr 4, 2024
2 parents e96aa02 + 5b08f7f commit fc8bc39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paperscraper/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ async def process(paper):
return paper

papers = await asyncio.gather(*[process(p) for p in papers])
total_papers = data["search_information"]["total_results"]
total_papers = data["search_information"].get("total_results", 1)
logger.info(
f"Found {total_papers} papers, analyzing {_offset} to {_offset + len(papers)}"
)
Expand Down

0 comments on commit fc8bc39

Please sign in to comment.