I want to write a script that grabs an IP from a website.
For example if I type in:
"whois mn.cgpd.gov"
and it returns:
---WHOIS---
IP: 175.132.87.59
Registrar: Civil Gamers Police Dept.
etc.
How do I grab the specific line from console with the ip address and turn it into a string?
Any help is apreciated!
For example if I type in:
"whois mn.cgpd.gov"
and it returns:
---WHOIS---
IP: 175.132.87.59
Registrar: Civil Gamers Police Dept.
etc.
How do I grab the specific line from console with the ip address and turn it into a string?
Any help is apreciated!