Google Images Download CLI via Python on CentOS/Ubuntu

[root@navdeepd2 ~]# pip install google_images_download

Collecting google_images_download
Downloading https://files.pythonhosted.org/packages/18/ed/0319d30c48f3653802da8e6dcfefcea6370157d10d566ef6807cceb5ec4d/google_images_download-2.8.0.tar.gz
Collecting selenium (from google_images_download)
Downloading https://files.pythonhosted.org/packages/80/d6/4294f0b4bce4de0abf13e17190289f9d0613b0a44e5dd6a7f5ca98459853/selenium-3.141.0-py2.py3-none-any.whl (904kB)
100% |████████████████████████████████| 911kB 947kB/s
Requirement already satisfied (use –upgrade to upgrade): urllib3 in /usr/lib/python2.7/site-packages (from selenium->google_images_download)
Installing collected packages: selenium, google-images-download
Running setup.py install for google-images-download … done
Successfully installed google-images-download-2.8.0 selenium-3.141.0

[root@navdeepd2 ~]# googleimagesdownload -k “funny quotes” -l 5

[Logs] Installation pip install whatsapp-cli

navdeep@D2:~$ sudo pip install whatsappcli

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory ‘/home/navdeep/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/navdeep/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting whatsapp-cli
Downloading https://files.pythonhosted.org/packages/3b/b6/1068bff87861f1baaa4f7677f62162dfb6490d57ba1208332dc2ec2b4fdb/whatsapp_cli-0.1.2-py2-none-any.whl
Collecting websocket-client (from whatsapp-cli)
Downloading https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl (200kB)
|████████████████████████████████| 204kB 5.5MB/s
Collecting click (from whatsapp-cli)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
|████████████████████████████████| 81kB 7.8MB/s
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from whatsapp-cli) (2.22.0)
Requirement already satisfied: six in ./.local/lib/python2.7/site-packages (from websocket-client->whatsapp-cli) (1.11.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (1.25.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (2019.6.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (2.8)
Installing collected packages: websocket-client, click, whatsapp-cli
Successfully installed click-7.0 websocket-client-0.56.0 whatsapp-cli-0.1.2

[Solved] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

Error:-

navdeep@D2:~$ ssh root@1.2.3.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!

Solution:-

ssh-keygen -f “/home/YOURUSERNAMEHERE/.ssh/known_hosts” -R 1.2.3.4

[Solved] urllib3 (1.25.3) or chardet (2.2.1) doesn’t match a supported version!

Hi i have faced the same error while running some python script but was able to resolve it with below given command, I hope it works for you too.

Error:-

/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.3) or chardet (2.2.1) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/usr/bin/instapy", line 6, in <module>
    from instapy_cli.__main__ import main
  File "/usr/lib/python2.7/site-packages/instapy_cli/__main__.py", line 6, in <module>
    version = pkg_resources.require('instapy_cli')[0].version
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (chardet 2.2.1 (/usr/lib/python2.7/site-packages), Requirement.parse('chardet>=3.0.2,<3.1.0'))

Solution:-

pip install --upgrade requests
OR
sudo pip install --upgrade requests

 

Output:-

pip install --upgrade requests
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: requests in /usr/lib/python2.7/site-packages
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: idna<2.9,>=2.5 in /usr/lib/python2.7/site-packages (from requests)
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests)
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests)
Installing collected packages: chardet
Found existing installation: chardet 2.2.1
Uninstalling chardet-2.2.1:
Successfully uninstalled chardet-2.2.1
Successfully installed chardet-3.0.4