V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
woniu127
V2EX  ›  Python

python 菜鸟写了一个自动批量查询域名的查询程序

  •  
  •   woniu127 · 2016-10-30 16:48:18 +08:00 · 5192 次点击
    这是一个创建于 2736 天前的主题,其中的信息可能已经有所发展或是发生改变。
    python 菜鸟一枚,平时有事没事就注册个域名,下午有时间就写了写如何批量查询域名。
    github 地址:
    https://github.com/gaokaigithub/domain

    网址: http://xueyuan.me/topic/50/
    11 条回复    2016-10-30 22:07:50 +08:00
    myleon
        1
    myleon  
       2016-10-30 17:11:26 +08:00
    赞一个
    ljheee
        2
    ljheee  
       2016-10-30 17:14:08 +08:00
    收藏一下
    Zzzzzzzzz
        3
    Zzzzzzzzz  
       2016-10-30 17:15:08 +08:00   ❤️ 1
    调用 whois 就好了, 多准备几个查询的 host, 不要用注册商接口去查,不然等你想注东西就没了
    qiayue
        4
    qiayue  
       2016-10-30 17:46:52 +08:00   ❤️ 1
    提示一下,域名 whois 服务器 443 端口
    woniu127
        5
    woniu127  
    OP
       2016-10-30 19:24:45 +08:00
    @Zzzzzzzzz 学到了
    woniu127
        6
    woniu127  
    OP
       2016-10-30 19:24:56 +08:00
    @qiayue 谢谢
    woniu127
        7
    woniu127  
    OP
       2016-10-30 19:53:52 +08:00
    @Zzzzzzzzz 请教一下如何提高注册时的速度?我用的 resellerclub 的 api ,不过感觉很慢
    qiayue
        8
    qiayue  
       2016-10-30 21:06:35 +08:00
    打错了 43 端口
    woniu127
        9
    woniu127  
    OP
       2016-10-30 21:09:06 +08:00
    @qiayue 找到了相应的查询 whois 包, https://bitbucket.org/richardpenman/pywhois
    woniu127
        10
    woniu127  
    OP
       2016-10-30 21:26:54 +08:00
    测试了下 python-whois 包,返回 whois 信息需要 0.6s ,万网的 api 返回信息需要 0.16s (没有加运行时间限制)。
    leavic
        11
    leavic  
       2016-10-30 22:07:50 +08:00
    namesilo 有批量 API ,一次可以查 200 个。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2688 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.