From cfc08b47839fbdd7634f7220d9e2ba10fa0d6547 Mon Sep 17 00:00:00 2001 From: hurinhu Date: Sun, 15 Nov 2020 10:43:19 +1300 Subject: [PATCH] update readme --- GoogleNews/__init__.py | 4 ++-- README.md | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/GoogleNews/__init__.py b/GoogleNews/__init__.py index 3a850bd..16e6f2a 100644 --- a/GoogleNews/__init__.py +++ b/GoogleNews/__init__.py @@ -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. diff --git a/README.md b/README.md index a64f58a..8a0c58c 100755 --- a/README.md +++ b/README.md @@ -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()