A little help to install Shodan

Hi guys, being new to OpenSUSE I would need a little help installing Shodan ---- I only need it for some local device scanning

I am using Tumbleweed Slowroll KDE

Thanks in advance

A few explanations from your side would be good to help your potential helpers to understand your issue. Do you have any link to the software you want to install?

You are indeed not very informative about what you want, but I found (in Leap 15.6) with YaST >Software Management the following packet:

python3-shodan - Python library and command-line utility for Shodan

Shodan is a search engine for Internet-connected devices. Google lets you search for websites, Shodan lets you search for devices. This library provides developers easy access to all of the data stored in Shodan in order to automate tasks and integrate into existing tools.

When this what you are after, then simply install it with YaST > Software Management or with

zypper in python3-shodan

BTW

I guess you are either using Tumbleweed or Slowroll.

It looks strange, but it is really the output of os-release:

test@SRtestbox:~> cat /etc/os-release
NAME="openSUSE Tumbleweed-Slowroll"
# VERSION="20250801"
ID="opensuse-slowroll"
ID_LIKE="opensuse-tumbleweed opensuse suse"
VERSION_ID="20250801"
PRETTY_NAME="openSUSE Tumbleweed-Slowroll"
ANSI_COLOR="0;32"
# CPE 2.3 format, boo#1217921
CPE_NAME="cpe:2.3:o:opensuse:slowroll:20250801:*:*:*:*:*:*:*"
#CPE 2.2 format
#CPE_NAME="cpe:/o:opensuse:slowroll:20250801"
BUG_REPORT_URL="https://bugzilla.opensuse.org"
SUPPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org"
DOCUMENTATION_URL="https://en.opensuse.org/openSUSE:Slowroll"
LOGO="distributor-logo-Slowroll"
test@SRtestbox:~> 

Indeed strange. But it once more confirms that every statement made should be accompanied by the proof of a command with output :wink:

shodan init
Traceback (most recent call last):
File “/usr/bin/shodan”, line 5, in
from shodan.main import main
File “/usr/lib/python3.13/site-packages/shodan/main.py”, line 55, in
from shodan.cli.alert import alert
File “/usr/lib/python3.13/site-packages/shodan/cli/alert.py”, line 6, in
from tldextract import extract
ModuleNotFoundError: No module named ‘tldextract’

How come

Could you help me, please?

andrei@tumbleweed:~> zypper se tldextract
Loading repository data...
Reading installed packages...

S  | Name                 | Summary                                    | Type
---+----------------------+--------------------------------------------+--------
   | python311-tldextract | Python module to separate the TLD of a URL | package
   | python312-tldextract | Python module to separate the TLD of a URL | package
   | python313-tldextract | Python module to separate the TLD of a URL | package
andrei@tumbleweed:~>

Sounds like missing package dependency. Install the missing module manually.

S | Name | Summary | Type
—±---------------------±-------------------------------------------±---------
| python311-tldextract | Python module to separate the TLD of a URL | pacchetto
| python312-tldextract | Python module to separate the TLD of a URL | pacchetto
| python313-tldextract | Python module to separate the TLD of a URL | pacchetto
Asus-X555LP:/home/ivan76 #

iNFO PLEACE :thinking:

According your output you have python313-shodan installed . So you need to install python313-tldextract.
sudo zypper in python313-tldextract

Wie mache ich dann weiter???

ack-end: classic_rpmtrans
Continuare? [s/n/v/…? mostra tutte le opzioni] (s): s
Precaricamento: python313-filelock-3.19.1-1.1.noarch.rpm [fine]
Precaricamento: python313-tldextract-5.3.0-1.1.noarch.rpm [fine]
Precaricamento: python313-requests-file-2.1.0-1.1.noarch.rpm [fine]
Precaricamento terminato. [operazione riuscita (2,5 KiB/s) ] …[fine]
Recupero di: python313-filelock-3.19.1-1.1.noarch (repo-oss) (1/3), 42,9 KiB
Recupero di: python313-requests-file-2.1.0-1.1.noarch (repo-oss) (2/3), 16,6 KiB
Recupero di: python313-tldextract-5.3.0-1.1.noarch (repo-oss) (3/3), 127,6 KiB

Controllo dei conflitti tra file: …[fine]
(1/3) Installazione di: python313-filelock-3.19.1-1.1.noarch …[fine]
(2/3) Installazione di: python313-requests-file-2.1.0-1.1.noarch …[fine]
(3/3) Installazione di: python313-tldextract-5.3.0-1.1.noarch …[fine]
Esecuzione script postransazionali in corso …

Back-end: classic_rpmtrans
Continuare? [s/n/v/…? mostra tutte le opzioni] (s): s
Precaricamento: python313-filelock-3.19.1-1.1.noarch.rpm [fine]
Precaricamento: python313-tldextract-5.3.0-1.1.noarch.rpm [fine]
Precaricamento: python313-requests-file-2.1.0-1.1.noarch.rpm [fine]
Precaricamento terminato. [operazione riuscita (2,5 KiB/s) ] …[fine]
Recupero di: python313-filelock-3.19.1-1.1.noarch (repo-oss) (1/3), 42,9 KiB
Recupero di: python313-requests-file-2.1.0-1.1.noarch (repo-oss) (2/3), 16,6 KiB
Recupero di: python313-tldextract-5.3.0-1.1.noarch (repo-oss) (3/3), 127,6 KiB

Controllo dei conflitti tra file: …[fine]
(1/3) Installazione di: python313-filelock-3.19.1-1.1.noarch …[fine]
(2/3) Installazione di: python313-requests-file-2.1.0-1.1.noarch …[fine]
(3/3) Installazione di: python313-tldextract-5.3.0-1.1.noarch …[fine]
Esecuzione script postransazionali in corso …

INFO PLEACE???

This is the English language part of the forums. So why your German post #9 above. And you should also precede the commands you use with LANG=C to get output that is understood here. E.g.

LANG=C zypper se tldextract

etc.

And then you should use the Preformatted text feature (the button </>) for your computer code (and please include the command with the output in one code section).

Lettura dei pacchetti installati in corso...

S  | Name                 | Summary                                    | Type
---+----------------------+--------------------------------------------+----------
   | python311-tldextract | Python module to separate the TLD of a URL | pacchetto
   | python312-tldextract | Python module to separate the TLD of a URL | pacchetto
i+ | python313-tldextract | Python module to separate the TLD of a URL | pacchetto
Asus-X555LP:/home/ivan76 # LANG=C zypper se tldextract
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...

S  | Name                 | Summary                                    | Type
---+----------------------+--------------------------------------------+--------
   | python311-tldextract | Python module to separate the TLD of a URL | package
   | python312-tldextract | Python module to separate the TLD of a URL | package
i+ | python313-tldextract | Python module to separate the TLD of a URL | package

Edited by Sauerland
setting Code-Tags

shodan --help
Usage: shodan [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  alert       Manage the network alerts for your account
  convert     Convert the given input data file into a different format.
  count       Returns the number of results for a search
  data        Bulk data access to Shodan
  domain      View all available information for a domain
  download    Download search results and save them in a compressed JSON...
  honeyscore  Check whether the IP is a honeypot or not.
  host        View all available information for an IP address
  info        Shows general information about your account
  init        Initialize the Shodan command-line
  myip        Print your external IP address
  org         Manage your organization's access to Shodan
  parse       Extract information out of compressed JSON files.
  radar       Real-Time Map of some results as Shodan finds them.
  scan        Scan an IP/ netblock using Shodan.
  search      Search the Shodan database
  stats       Provide summary information about a search query
  stream      Stream data in real-time.
  trends      Search Shodan historical database
  version     Print version of this tool.

So in theory, it should be okay??

Edited by Sauerland
Please use Code-Tags for terminal output such as:
Code-Tags

Are there free and fairly good command-line translators?

Maybe read:
man shodan

Already active, thanks a lot