Skip to content

Commit

Permalink
Fixed empty google search bug (#14)
Browse files Browse the repository at this point in the history
* Update lib.py

* Update version.py
  • Loading branch information
blackadad authored Aug 28, 2023
1 parent 1a08415 commit 3779c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paperscraper/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ async def a_search_papers(

if search_type == "google":
if not "organic_results" in data:
return None, None
return paths
papers = data["organic_results"]
year_extract = re.compile(r"\b\d{4}\b")
titles = [p["title"] for p in papers]
Expand Down
2 changes: 1 addition & 1 deletion paperscraper/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.3"
__version__ = "1.0.4"

0 comments on commit 3779c31

Please sign in to comment.