0

I want to design a page that user enter domain names and the program check if it is available or not.I searched in web that took me several hours and finally no result.there were guidances in this page and also this one,but they didn't help me.I searched about arcpy in django,but that sounds like I can't use it in django,am I right?there were also some APIs but they were for PHP,Ruby and etc.If U have done something like this,would U mind tell me which API or library U have used?

Edit:

I think solution in this question is good,but what's dependencies to use subprocess ?


Edit: this is my solution

Community
  • 1
  • 1
Asma Gheisari
  • 5,794
  • 9
  • 30
  • 51

2 Answers2

1

Try this one http://code.google.com/p/pywhois/

EDIT: python whois for windows

Community
  • 1
  • 1
Pavel Reznikov
  • 2,968
  • 1
  • 18
  • 17
  • that sounds like great,this 2 lines of code are clear : >>> import pywhois >>> w = pywhois.whois('google.com') >>> w.expiration_date ,what about availability?are U sure It can check availability? – Asma Gheisari Jul 20 '12 at 10:38
  • tnx,U directed me to this issue:http://stackoverflow.com/questions/11578943/error-when-using-pywhois/ – Asma Gheisari Jul 20 '12 at 13:34
0

Django's URLField has a build in "verify_exists" method which you might be able to use. For more advanced behaviour I would just use urllib2 or some other library and add some functionality to your form

Hedde van der Heide
  • 21,841
  • 13
  • 71
  • 100