Skip to content

Commit

Permalink
Merge 1e44d8d into 6347f2a
Browse files Browse the repository at this point in the history
  • Loading branch information
HurinHu committed Jun 16, 2022
2 parents 6347f2a + 1e44d8d commit 8abfdd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GoogleNews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self,lang="en",period="",start="",end="",encode="utf-8",region=None
self.__start = start
self.__end = end
self.__encode = encode
self.__version = '1.6.3'
self.__version = '1.6.4'

def getVersion(self):
return self.__version
Expand Down Expand Up @@ -136,7 +136,7 @@ def build_response(self):
else:
#TODO might want to add output for user to know no data was found
return
result = self.content.find_all("div", id="search")[0].find_all("g-card")
result = self.content.find_all("div", id="search")[0].find("div", id="rso").children
return result

def page_at(self, page=1):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="GoogleNews",
version="1.6.3",
version="1.6.4",
author="Hurin Hu",
author_email="hurin@live.ca",
description="Google News search for Python",
Expand Down
2 changes: 1 addition & 1 deletion test/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TestStringMethods(unittest.TestCase):

def testVersion(self):
googlenews = GoogleNews()
version = '1.6.3'
version = '1.6.4'
self.assertIn(version, googlenews.getVersion())
print('Latest version matched')

Expand Down

0 comments on commit 8abfdd8

Please sign in to comment.