等待域名掉落
不玩域名,但也留了几个收藏,算是电子藏品了。
好的域名一般在赎回期就会被域名平台截胡(预注册),原主没有高价赎回的话将被预注册者获得。有些一般的域名,即使要掉落了也是会被平台先注册(一段时间)然后放出来竞价或者自己拿去放到dan上面卖,就贼恶心。
总结-> 等好看的域名掉落几乎是不可能的。
只有一些非主流国别(非洲那种地方)组成的hack的域名值得注册一下,比如:p.ng、v.ps这种。最近在expireddomains.net看到一个 **.ee 域名要掉落了,准备试着注册一下。因为不知道具体什么时候掉落,所以写了个脚本监听一下。
import time
import requests
from xml.etree import ElementTree
# Configuration parameters
WHOIS_API_KEY = "YOUR_API_KRY"
DOMAIN = "xx.ee"
WHOIS_API_URL = f"https://www.whoisxmlapi.com/whoisserver/WhoisService?apiKey={WHOIS_API_KEY}&domainName={DOMAIN}"
TELEGRAM_BOT_TOKEN = "YOUR_BOT_TOKEN"
TELEGRAM_CHAT_ID = "YOUR_CHAT_ID"
TELEGRAM_API_URL = f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/sendMessage"
# Function: Send message via Telegram
def send_telegram_message(message):
payload = {
"chat_id": TELEGRAM_CHAT_ID,
"text": message,
}
try:
response = requests.post(TELEGRAM_API_URL, json=payload)
response.raise_for_status()
print("Telegram notification sent.")
except requests.exceptions.RequestException as e:
print(f"Failed to send Telegram message: {e}")
# Function: Check domain status
def check_domain_status():
try {
response = requests.get(WHOIS_API_URL)
response.raise_for_status()
tree = ElementTree.fromstring(response.content)
status = tree.findtext(".//status")
raw_text = tree.findtext(".//rawText")
data_error = tree.findtext(".//dataError")
# Check if domain is available for registration
if data_error == "MISSING_WHOIS_DATA" or "Domain not found" in raw_text or "expired" not in status :
print(f"Domain {DOMAIN} is now available!")
send_telegram_message(f"Domain {DOMAIN} is now available!")
return True
else:
print(f"Current domain status: {status}")
} catch (requests.exceptions.RequestException e) {
print(f"WHOIS query failed: {e}")
}
return False
# Main loop: Check domain status every 30 seconds
def main():
while True:
print("Checking domain availability...")
if check_domain_status():
break
time.sleep(30)
if __name__ == "__main__":
main()
直接查询,ee的注册局返回太慢了,有时候都不返回数据,不知道是不是我本地ip的原因。
whoisxmlapi的api查询就很快,用了几个邮箱白嫖了一些额度。
–
后续:出了一两百欧的价想捡捡漏,不出意外地被人拍走了。