On Tue, 2014-05-06 at 07:52 +0800, Paul Wise wrote:

> A common thing that happens when domains expire is that they become for
> sale. It would be great if duck could detect this situation.

I've attached a patch for this that detects the example I mentioned and
also the situation from #751072. The whois check needs implementing too.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise
From cdf8c9b0076a832b9dd2253e01b81bd7e3a7732e Mon Sep 17 00:00:00 2001
From: Paul Wise <p...@debian.org>
Date: Tue, 10 Jun 2014 11:48:14 +0800
Subject: [PATCH] Detect domains that are for sale

---
 lib/DUCK.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/DUCK.pm b/lib/DUCK.pm
index fc22fb7..7c174fe 100644
--- a/lib/DUCK.pm
+++ b/lib/DUCK.pm
@@ -246,7 +246,7 @@ sub __run_browser {
     
     my $curl = WWW::Curl::Easy->new;
     
-    my @website_moved_regexs=('new homepage','update your links','we have moved');
+    my @website_moved_regexs=('new homepage','update your links','we have moved','buy this domain','domain .* for sale', 'order this domain');
     my @website_moved_whitelist=('anonscm.debian.org.*duck.git');
     
     $curl->setopt(CURLOPT_HEADER,0);
-- 
2.0.0

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to