很多域名注册商支持批量搜索,博主最近想注册2位长度前缀、特定后缀的短域名,分享下用到的域名列表生成脚本。生成这列表后,直接可以复制到注册商的搜索框批量搜索!

import csv
from itertools import product
from string import ascii_lowercase

DOMAIN = ".ac.cn"
LENGTH = 2

def gen_all():
    keywords = [''.join(i) for i in product(ascii_lowercase, repeat=LENGTH)]
    # print(keywords)
    # write the result into csv file
    with open('two-letter.csv', 'w+', newline='\n') as file:
        write = csv.writer(file)
        for c in keywords:
            write.writerow([c+DOMAIN, ])


def main():
    gen_all()


if __name__ == "__main__":
    main()

AD:G Suite Education全局管理员或者子号出售中!可联系博主

Last modification:May 16th, 2020 at 07:55 pm
如果觉得我的文章对你有用,请随意赞赏