# Comparing python-googlesearch version 2.0.3-0kali1~jan+unchanged12 (unchanged) & python-googlesearch version 3.0.0-0kali1~jan+nur7 (fresh-releases) ## python3-googlesearch_3.0.0-0kali1_all.deb ### file list @@ -1,3 +1,3 @@ -rw-r--r-- 0 0 0 4 2021-02-02 10:24:31.000000 debian-binary --rw-r--r-- 0 0 0 1188 2021-02-02 10:24:31.000000 control.tar.xz --rw-r--r-- 0 0 0 43812 2021-02-02 10:24:31.000000 data.tar.xz +-rw-r--r-- 0 0 0 1184 2021-02-02 10:24:31.000000 control.tar.xz +-rw-r--r-- 0 0 0 43340 2021-02-02 10:24:31.000000 data.tar.xz ### control.tar.xz #### control.tar ##### file list @@ -1,5 +1,5 @@ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./ --rw-r--r-- 0 root (0) root (0) 459 2021-02-02 10:24:31.000000 ./control +-rw-r--r-- 0 root (0) root (0) 452 2021-02-02 10:24:31.000000 ./control -rw-r--r-- 0 root (0) root (0) 809 2021-02-02 10:24:31.000000 ./md5sums -rwxr-xr-x 0 root (0) root (0) 265 2021-02-02 10:24:31.000000 ./postinst -rwxr-xr-x 0 root (0) root (0) 414 2021-02-02 10:24:31.000000 ./prerm ##### ./control @@ -1,13 +1,13 @@ Package: python3-googlesearch Source: python-googlesearch -Version: 3.0.0-0kali1 +Version: 3.0.0-0kali1 Architecture: all Maintainer: Kali Developers -Installed-Size: 77 +Installed-Size: 74 Depends: python3-bs4, python3:any Section: python Priority: optional Homepage: https://breakingcode.wordpress.com/ Description: Google search engine (Python 3) This package contains Python bindings for the Google search engine. . ##### ./md5sums ###### line order @@ -1,9 +1,9 @@ usr/bin/googlesearch -usr/lib/python3/dist-packages/google-2.0.3.egg-info/PKG-INFO -usr/lib/python3/dist-packages/google-2.0.3.egg-info/dependency_links.txt -usr/lib/python3/dist-packages/google-2.0.3.egg-info/requires.txt -usr/lib/python3/dist-packages/google-2.0.3.egg-info/top_level.txt +usr/lib/python3/dist-packages/google-3.0.0.egg-info/PKG-INFO +usr/lib/python3/dist-packages/google-3.0.0.egg-info/dependency_links.txt +usr/lib/python3/dist-packages/google-3.0.0.egg-info/requires.txt +usr/lib/python3/dist-packages/google-3.0.0.egg-info/top_level.txt usr/lib/python3/dist-packages/googlesearch/__init__.py usr/lib/python3/dist-packages/googlesearch/user_agents.txt.gz usr/share/doc/python3-googlesearch/changelog.Debian.gz usr/share/doc/python3-googlesearch/copyright ### data.tar.xz #### data.tar ##### file list @@ -1,20 +1,20 @@ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/bin/ --rwxr-xr-x 0 root (0) root (0) 5502 2021-02-02 10:24:31.000000 ./usr/bin/googlesearch +-rwxr-xr-x 0 root (0) root (0) 4703 2021-02-02 10:24:31.000000 ./usr/bin/googlesearch drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/ -drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/ --rw-r--r-- 0 root (0) root (0) 607 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/PKG-INFO --rw-r--r-- 0 root (0) root (0) 1 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/dependency_links.txt --rw-r--r-- 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/requires.txt --rw-r--r-- 0 root (0) root (0) 13 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/top_level.txt +drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/ +-rw-r--r-- 0 root (0) root (0) 607 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/PKG-INFO +-rw-r--r-- 0 root (0) root (0) 1 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/dependency_links.txt +-rw-r--r-- 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/requires.txt +-rw-r--r-- 0 root (0) root (0) 13 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/top_level.txt drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/googlesearch/ --rw-r--r-- 0 root (0) root (0) 14798 2019-12-05 15:15:32.000000 ./usr/lib/python3/dist-packages/googlesearch/__init__.py +-rw-r--r-- 0 root (0) root (0) 12981 2020-07-11 14:38:16.000000 ./usr/lib/python3/dist-packages/googlesearch/__init__.py -rw-r--r-- 0 root (0) root (0) 36052 2021-02-02 10:24:31.000000 ./usr/lib/python3/dist-packages/googlesearch/user_agents.txt.gz drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/share/ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/share/doc/ drwxr-xr-x 0 root (0) root (0) 0 2021-02-02 10:24:31.000000 ./usr/share/doc/python3-googlesearch/ --rw-r--r-- 0 root (0) root (0) 466 2021-02-02 10:24:31.000000 ./usr/share/doc/python3-googlesearch/changelog.Debian.gz +-rw-r--r-- 0 root (0) root (0) 476 2021-02-02 10:24:31.000000 ./usr/share/doc/python3-googlesearch/changelog.Debian.gz -rw-r--r-- 0 root (0) root (0) 1862 2021-02-02 10:24:31.000000 ./usr/share/doc/python3-googlesearch/copyright ##### ./usr/bin/googlesearch @@ -90,40 +82,29 @@ parser.add_option( '--stop', metavar='NUMBER', type='int', default=0, help="last result to retrieve [default: unlimited]") parser.add_option( '--pause', metavar='SECONDS', type='float', default=2.0, help="pause between HTTP requests [default: 2.0]") parser.add_option( - '--rua', metavar='USERAGENT', action='store_true', default=False, + '--rua', action='store_true', default=False, + help="Randomize the User-Agent [default: no]") + parser.add_option( + '--insecure', dest="verify_ssl", action='store_false', default=True, help="Randomize the User-Agent [default: no]") (options, args) = parser.parse_args() query = ' '.join(args) if not query: parser.print_help() sys.exit(2) params = [ (k, v) for (k, v) in options.__dict__.items() if not k.startswith('_')] params = dict(params) - # Split the comma separated list of domains, if present. - if 'domains' in params: - params['domains'] = [x.strip() for x in params['domains'].split(',')] - - # Use a special search type if requested. - if 'tpe' in params: - tpe = params['tpe'] - if tpe and tpe not in ( - 'search', 'images', 'videos', 'news', - 'shopping', 'books', 'apps'): - parser.error("invalid type: %r" % tpe) - if tpe == 'search': - params['tpe'] = '' - # Randomize the user agent if requested. if 'rua' in params and params.pop('rua'): params['user_agent'] = get_random_user_agent() # Run the query. for url in search(query, **params): print(url) ##### ./usr/lib/python3/dist-packages/googlesearch/__init__.py @@ -365,83 +358,14 @@ start += num if num == 10: url = url_next_page % vars() else: url = url_next_page_num % vars() -# Shortcut to search images. -# Beware, this does not return the image link. -def search_images(*args, **kwargs): - """ - Shortcut to search images. - - Same arguments and return value as the main search function. - - :note: Beware, this does not return the image link. - """ - kwargs['tpe'] = 'isch' - return search(*args, **kwargs) - - -# Shortcut to search news. -def search_news(*args, **kwargs): - """ - Shortcut to search news. - - Same arguments and return value as the main search function. - """ - kwargs['tpe'] = 'nws' - return search(*args, **kwargs) - - -# Shortcut to search videos. -def search_videos(*args, **kwargs): - """ - Shortcut to search videos. - - Same arguments and return value as the main search function. - """ - kwargs['tpe'] = 'vid' - return search(*args, **kwargs) - - -# Shortcut to search shop. -def search_shop(*args, **kwargs): - """ - Shortcut to search shop. - - Same arguments and return value as the main search function. - """ - kwargs['tpe'] = 'shop' - return search(*args, **kwargs) - - -# Shortcut to search books. -def search_books(*args, **kwargs): - """ - Shortcut to search books. - - Same arguments and return value as the main search function. - """ - kwargs['tpe'] = 'bks' - return search(*args, **kwargs) - - -# Shortcut to search apps. -def search_apps(*args, **kwargs): - """ - Shortcut to search apps. - - Same arguments and return value as the main search function. - """ - kwargs['tpe'] = 'app' - return search(*args, **kwargs) - - # Shortcut to single-item search. # Evaluates the iterator to return the single URL as a string. def lucky(*args, **kwargs): """ Shortcut to single-item search. Same arguments as the main search function, but the return value changes. ##### ./usr/share/doc/python3-googlesearch/changelog.Debian.gz ###### filetype from file(1) @@ -1 +1 @@ -gzip compressed data, max compression, from Unix, original size 879 +gzip compressed data, max compression, from Unix, original size 890 ###### changelog.Debian @@ -1,14 +1,15 @@ -python-googlesearch (3.0.0-0kali1) unchanged; urgency=low +python-googlesearch (3.0.0-0kali1) kali-experimental; urgency=low + * New upstream release. * Build for debian-janitor apt repository. - -- Kali Janitor Fri, 11 Jun 2021 09:11:44 -0000 + -- Kali Janitor Sat, 17 Jul 2021 17:15:27 -0000 -python-googlesearch (2.0.3-0kali1~jan+unchanged11) kali-dev; urgency=medium +python-googlesearch (2.0.3-0kali1) kali-dev; urgency=medium [ Sophie Brun ] * Configure git-buildpackage for Kali * Add GitLab's CI configuration file * New upstream version 2.0.3 * Update debian/copyright * Bump Standards-Version to 4.5.1 ##### Comparing ./usr/lib/python3/dist-packages/google-2.0.3.egg-info/PKG-INFO & ./usr/lib/python3/dist-packages/google-3.0.0.egg-info/PKG-INFO Files similar despite different names (score: 8, lower is more similar) @@ -1,10 +1,10 @@ Metadata-Version: 1.1 Name: google -Version: 2.0.3 +Version: 3.0.0 Summary: Python bindings to the Google search engine. Home-page: http://breakingcode.wordpress.com/ Author: Mario Vilas Author-email: mvilas@gmail.com License: UNKNOWN Description: UNKNOWN Platform: UNKNOWN