diff --git a/zoomeye/__init__.py b/zoomeye/__init__.py index 081c5b9..cfaae9d 100644 --- a/zoomeye/__init__.py +++ b/zoomeye/__init__.py @@ -11,5 +11,5 @@ __name__ = 'zoomeye' __package__ = 'zoomeye' -__version__ = ' 2.0.4.6' +__version__ = ' 2.0.4.6.1' __site__ = "https://www.zoomeye.org/doc" diff --git a/zoomeye/cli.py b/zoomeye/cli.py index 0180fc2..7a5074d 100644 --- a/zoomeye/cli.py +++ b/zoomeye/cli.py @@ -63,7 +63,7 @@ def main(): parser_search.add_argument( "-num", default=20, - help="The number of search results that should be returned", + help="The number of search results that should be returned, support 'all'", type=str, metavar='value' ) diff --git a/zoomeye/data.py b/zoomeye/data.py index 728d485..704af73 100644 --- a/zoomeye/data.py +++ b/zoomeye/data.py @@ -363,7 +363,7 @@ def handle_page(self): ) self.num = self.zoomeye.total cache = Cache(self.dork, page=1, resource=self.resource) - cache.save(self.zoomeye.raw_data) + cache.save(json.dumps(self.zoomeye.raw_data)) if self.num % 20 == 0: return int(self.num / 20) return int(self.num / 20) + 1