Hello community,

here is the log from the commit of package python-shodan for openSUSE:Factory 
checked in at 2020-01-06 15:24:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-shodan (Old)
 and      /work/SRC/openSUSE:Factory/.python-shodan.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-shodan"

Mon Jan  6 15:24:27 2020 rev:18 rq:761126 version:1.21.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-shodan/python-shodan.changes      
2019-12-23 22:48:04.754081719 +0100
+++ /work/SRC/openSUSE:Factory/.python-shodan.new.6675/python-shodan.changes    
2020-01-06 15:24:29.544552447 +0100
@@ -1,0 +2,6 @@
+Wed Jan  1 10:48:40 UTC 2020 - Sebastian Wagner <[email protected]>
+
+- update to version 1.21.1:
+ - Add ``history`` and ``type`` parameters to ``Shodan.dns.domain_info()`` 
method and CLI command
+
+-------------------------------------------------------------------

Old:
----
  shodan-1.21.0.tar.gz

New:
----
  shodan-1.21.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-shodan.spec ++++++
--- /var/tmp/diff_new_pack.m0v7Px/_old  2020-01-06 15:24:32.868554169 +0100
+++ /var/tmp/diff_new_pack.m0v7Px/_new  2020-01-06 15:24:32.868554169 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-shodan
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{!?license: %global license %doc}
 Name:           python-shodan
-Version:        1.21.0
+Version:        1.21.1
 Release:        0
 Summary:        Python library and command-line utility for Shodan
 License:        MIT

++++++ shodan-1.21.0.tar.gz -> shodan-1.21.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/CHANGELOG.md 
new/shodan-1.21.1/CHANGELOG.md
--- old/shodan-1.21.0/CHANGELOG.md      2019-12-15 00:24:47.000000000 +0100
+++ new/shodan-1.21.1/CHANGELOG.md      2019-12-25 18:37:50.000000000 +0100
@@ -1,6 +1,10 @@
 CHANGELOG
 =========
 
+1.21.1
+------
+* Add ``history`` and ``type`` parameters to ``Shodan.dns.domain_info()`` 
method and CLI command
+
 1.21.0
 ------
 * New API methods ``api.search_facets()`` and ``api.search_filters()`` to get 
a list of available facets and filters.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/PKG-INFO new/shodan-1.21.1/PKG-INFO
--- old/shodan-1.21.0/PKG-INFO  2019-12-15 00:32:35.000000000 +0100
+++ new/shodan-1.21.1/PKG-INFO  2019-12-25 18:38:54.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: shodan
-Version: 1.21.0
+Version: 1.21.1
 Summary: Python library and command-line utility for Shodan 
(https://developer.shodan.io)
 Home-page: http://github.com/achillean/shodan-python/tree/master
 Author: John Matherly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/setup.py new/shodan-1.21.1/setup.py
--- old/shodan-1.21.0/setup.py  2019-12-15 00:21:39.000000000 +0100
+++ new/shodan-1.21.1/setup.py  2019-12-25 18:03:22.000000000 +0100
@@ -7,7 +7,7 @@
 
 setup(
     name='shodan',
-    version='1.21.0',
+    version='1.21.1',
     description='Python library and command-line utility for Shodan 
(https://developer.shodan.io)',
     long_description=README,
     long_description_content_type='text/x-rst',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/shodan/__main__.py 
new/shodan-1.21.1/shodan/__main__.py
--- old/shodan-1.21.0/shodan/__main__.py        2019-11-19 02:22:44.000000000 
+0100
+++ new/shodan-1.21.1/shodan/__main__.py        2019-12-25 17:59:32.000000000 
+0100
@@ -138,13 +138,15 @@
 @click.argument('domain', metavar='<domain>')
 @click.option('--details', '-D', help='Lookup host information for any IPs in 
the domain results', default=False, is_flag=True)
 @click.option('--save', '-S', help='Save the information in the a file named 
after the domain (append if file exists).', default=False, is_flag=True)
-def domain_info(domain, details, save):
[email protected]('--history', '-H', help='Include historical DNS data in the 
results', default=False, is_flag=True)
[email protected]('--type', '-T', help='Only returns DNS records of the provided 
type', default=None)
+def domain_info(domain, details, save, history, type):
     """View all available information for a domain"""
     key = get_api_key()
     api = shodan.Shodan(key)
 
     try:
-        info = api.dns.domain_info(domain)
+        info = api.dns.domain_info(domain, history=history, type=type)
     except shodan.APIError as e:
         raise click.ClickException(e.value)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/shodan/client.py 
new/shodan-1.21.1/shodan/client.py
--- old/shodan-1.21.0/shodan/client.py  2019-12-15 00:22:51.000000000 +0100
+++ new/shodan-1.21.1/shodan/client.py  2019-12-25 17:51:24.000000000 +0100
@@ -69,10 +69,15 @@
         def __init__(self, parent):
             self.parent = parent
 
-        def domain_info(self, domain):
+        def domain_info(self, domain, history=False, type=None):
             """Grab the DNS information for a domain.
             """
-            return self.parent._request('/dns/domain/{}'.format(domain), {})
+            args = {}
+            if history:
+                args['history'] = history
+            if type:
+                args['type'] = type
+            return self.parent._request('/dns/domain/{}'.format(domain), args)
 
     class Notifier:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/shodan-1.21.0/shodan.egg-info/PKG-INFO 
new/shodan-1.21.1/shodan.egg-info/PKG-INFO
--- old/shodan-1.21.0/shodan.egg-info/PKG-INFO  2019-12-15 00:32:35.000000000 
+0100
+++ new/shodan-1.21.1/shodan.egg-info/PKG-INFO  2019-12-25 18:38:54.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: shodan
-Version: 1.21.0
+Version: 1.21.1
 Summary: Python library and command-line utility for Shodan 
(https://developer.shodan.io)
 Home-page: http://github.com/achillean/shodan-python/tree/master
 Author: John Matherly


Reply via email to