| 1 | package Net::ParseWhois::Domain::Registrar::Dotster; | ||
| 2 | |||
| 3 | require 5.004; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | @Net::ParseWhois::Domain::Registrar::Dotster::ISA = qw(Net::ParseWhois::Domain::Registrar); | ||
| 7 | $Net::ParseWhois::Domain::Registrar::Dotster::VERSION = 0.01; | ||
| 8 | |||
| 9 | sub rdebug { 0 } | ||
| 10 | sub regex_org_start { '^Registrant\:'} | ||
| 11 | sub regex_no_match { '^No match for' } | ||
| 12 | sub regex_created { '^Created on: (.*)$' } | ||
| 13 | sub regex_expires { '^Expires on: (.*)$' } | ||
| 14 | sub regex_updated { '^Last Updated on: (.*)$' } | ||
| 15 | sub regex_domain { '^Domain Name: (.*)$' } | ||
| 16 | sub regex_nameservers { '^Domain servers in listed order:$' } | ||
| 17 | sub my_nameservers_noips { 1 } | ||
| 18 | sub my_contacts { [ qw(Administrative Technical) ] } | ||
| 19 | sub my_data { [ qw(my_nameservers_noips regex_org_start regex_no_match regex_created regex_expires regex_updated regex_domain regex_nameservers my_contacts) ] } | ||
| 20 | |||
| 21 | sub parse_text { | ||
| 22 | my $self = shift; | ||
| 23 | my $text = shift; # array ref, one line per element | ||
| 24 | |||
| 25 | $self->dump_text($text) if $self->rdebug; | ||
| 26 | $self->parse_start($text); | ||
| 27 | $self->parse_org($text); | ||
| 28 | $self->parse_domain_name($text); | ||
| 29 | $self->parse_domain_stats($text); | ||
| 30 | $self->parse_contacts($text); | ||
| 31 | $self->parse_nameservers($text); | ||
| 32 | |||
| 33 | return $self; | ||
| 34 | |||
| 35 | } | ||
| 36 | |||
| 37 | |||
| 38 | 1; |