+ 1

How to fetch the result of whois like site using python

i want to input a keyword that will be search on the site and the result will be represent on the python program

16th Jul 2017, 6:09 PM
Lakshya Yadav
Lakshya Yadav - avatar
2 Réponses
16th Jul 2017, 6:10 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
Kuba's solution is better than my strategy here: sockets -- which is neither simple nor robust. Outside SoloLearn are more options, my personal favorites: import requests, json ...which in comparison is like a nice happy dream. I'm linking two samples for your information (intended to be outside of voting): Outside SL. Using requests + json. This was written as a home companion to sockets (and the first time I got Python pseudo-persistence here) https://code.sololearn.com/c37XERvwb2Cz/?ref=app Inside SL. More mature sockets as I got used to it (fragile, non-portable socket code after the #####'s) https://code.sololearn.com/c1AHY6gxx8r7/?ref=app
16th Jul 2017, 8:59 PM
Kirk Schafer
Kirk Schafer - avatar