Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HurinHu committed Nov 14, 2020
1 parent 9174eb8 commit cfc08b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GoogleNews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def get_news(self, key="",deamplify=False):
print(e_parser)
pass

def result(self):
return self.results()
def result(self,sort=False):
return self.results(sort)

def results(self,sort=False):
"""Returns the __results.
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ googlenews.getpage(2)
```
googlenews.results()
```
if `googlenews.result(sort=True)` the tool will try to order the results in cronologically reversed order
or
```
googlenews.result()
```
if `googlenews.results(sort=True)` the tool will try to order the results in cronologically reversed order

- Get texts will return the list of news titles
```
googlenews.get_texts()
Expand Down

0 comments on commit cfc08b4

Please sign in to comment.