python自定义域名批量查询注册工具

python · 2023-07-05

思路 自定义关键词=>阿里API=>查询结果保存本地txt

 # -*- coding:UTF-8 -*-
import requests
from bs4 import BeautifulSoup
import re

def xfun():
    S1 = 'abcdefghijklmnopqrstuvwxyz'
    S2 = 'abcdefghijklmnopqrstuvwxyz'
    S3 = 'abcdefghijklmnopqrstuvwxyz'
    l = [a+b+c for a in S1 for b in S2 for c in S3]
    return l


def domain(k1,k2,h):
    val1=str(k1)+str(k2)+'.'+str(h)
    print(val1)
    domain_new="https://checkapi.aliyun.com/check/checkdomain?domain=%s&command=&token=Y847a5e60c85b0f08e40bba55aa021566&ua=&currency=&site=&bid=&_csrf_token=&callback=jsonp_1538051895584_24373" %val1 #阿里查找域名API
    r2=requests.get(url=domain_new,timeout=100)
    soup2=BeautifulSoup(r2.text,'lxml')
    html=soup2.text
    lists =re.findall('"avail":0', html)
    if lists:#判断list是否为空
        print(val1+'已注册')
    else:
        with open('/Users/yangxin/Desktop/可以注册域名.txt', 'a') as f:#将可以注册内容写进txt
            print(val1+'可以注册')
            f.write('注册域名:'+val1+'\n')
            f.close()


for k in xfun():
    domain(k,2,com)#2为自定义关键词,com为自定义域名后缀
    pass
python批量查询注册工具
  1. metformin pills 500 mg

  2. buy valtrex usa

  3. gold pharmacy online

  4. valtrex cream price

  5. american online pharmacy

  6. tadalafil 20 mg tablet cost

  7. lisinopril price comparison

  8. synthroid 0.025 mg

  9. lumsefoDob 29 天前

    СЕО Форум Вебмастеров - сообщество ( форум ) вебмастеров, онлайн манимейкеров, фрилансеров и т.д.

  10. СЕО Форум Вебмастеров - сообщество ( форум ) вебмастеров, онлайн манимейкеров, фрилансеров и т.д.

  11. wmltuEi 03-15

    A digital goods marketplace is an online stage that enables individuals or businesses to accept, tattle on, and employment digital goods. Digital goods are evanescent products that can be delivered electronically, such as software, music, e-books, photos, videos, online courses, and Top Affiliate Programs art.

    Digital goods marketplaces can be designed object of restricted characteristic of types of digital products, such as a tenets in the interest of selling offer photos, or they can be more customary, oblation a deviant multiplicity of digital products. Examples of digital goods marketplaces include Etsy for the purpose digital art and craft items, Udemy for online courses, and Amazon in behalf of e-books and music.

    Digital goods marketplaces provide a convenient course in spite of sellers to reach a stocky audience and for buyers to gather up a inclusive choice of products in identical place. They typically afford tools exchange for sellers to lean their products, manage inventory, and modify payments. Buyers can flick through and search also in behalf of products, scan reviews, and attain purchases securely using a heterogeneity of payment methods.

    One-liner of the advantages of digital goods marketplaces is that they again offer a way to save sellers to right to phlegmatic revenues during creating and selling digital products once, while buyers can fancy minute access to the products they procurement without having to cool one's heels instead of shipping. Nevertheless, digital goods marketplaces also disguise challenges such as preventing piracy and ensuring the property of products sold on their platforms.

  12. wmltuEi 01-11

    A digital goods marketplace is an online rostrum that enables individuals or businesses to obtain, tattle on, and employment digital goods. Digital goods are evanescent products that can be delivered electronically, such as software, music, e-books, photos, videos, online courses, and Top Affiliate Programs art.

    Digital goods marketplaces can be designed for indicated types of digital products, such as a platform seeking selling sheep photos, or they can be more inclusive, sacrifice a wide variety of digital products. Examples of digital goods marketplaces encompass Etsy after digital art and craft items, Udemy representing online courses, and Amazon allowing for regarding e-books and music.

    Digital goods marketplaces give a helpful way for sellers to reach a stocky audience and representing buyers to identify a as much as possible class of products in anyone place. They typically get ready for tools appropriate for sellers to record their products, look after inventory, and convert payments. Buyers can scan and search for products, scan reviews, and attain purchases securely using a number of payment methods.

    Joined of the advantages of digital goods marketplaces is that they often presentation a style for sellers to earn passive revenues via creating and selling digital products at a go, while buyers can get a kick minute access to the products they procurement without having to minister to for shipping. However, digital goods marketplaces also bite on the bullet challenges such as preventing piracy and ensuring the quality of products sold on their platforms.

Theme Jasmine by Kent Liao