I've got a file of domain names e.g. equivalent to 2500.
I would like to do a whois on these domain names.
Issue is I've never done that and don't know where to start. If you have any ideas, I'm all ears.
TIA.
pywhoiswebwhois
I've got a file of domain names e.g. equivalent to 2500.
I would like to do a whois on these domain names.
Issue is I've never done that and don't know where to start. If you have any ideas, I'm all ears.
TIA.
Best Solution
You can also use the Linux commandtool
whois
. The following code opens a subprocess and searches for the domain.But you have to be carefull with many requests in short time. The servers will eventually block you after a while. ;)
The
with open as
statement handles the filestream. The 'a' at the output file means the file is opened in append-mode.