diff options
| author | David Leadbeater | 2015-01-10 16:57:01 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 16:57:01 +0000 |
| commit | cbbdf2a1d93dbb64d3fb34346e9c57b14dfa2931 (patch) | |
| tree | 019203a11e96a90be76a4538433e1d223a747d55 /scripts/localize.pl | |
| parent | 0a3941245c1cbb55dd3c67af0b5c33caddd04f8b (diff) | |
| parent | 71dba3f266191eeeff577303232d700fefe2e6e1 (diff) | |
| download | scripts.irssi.org-cbbdf2a1d93dbb64d3fb34346e9c57b14dfa2931.tar.bz2 | |
Merge branch 'gh-pages' of gh:irssi/scripts.irssi.org into gh-pages
Conflicts:
_data/scripts.yaml
Diffstat (limited to 'scripts/localize.pl')
| -rw-r--r-- | scripts/localize.pl | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/localize.pl b/scripts/localize.pl index 8d00985..7aabe9f 100644 --- a/scripts/localize.pl +++ b/scripts/localize.pl @@ -52,11 +52,15 @@ # # 03.07.2002 # *switched to Data::Dumper +# +# 25.11.2014 +# Added utrace.de as a localizer +# http://www.utrace.de/ use strict; use vars qw($VERSION %IRSSI); -$VERSION = "2003112301"; +$VERSION = "2014112501"; %IRSSI = ( authors => "Stefan 'tommie' Tomanek", contact => "stefan\@pico.ruhr.de", @@ -186,16 +190,17 @@ $procs = 0; ); %ipdb = ( - d1localizer=>{ name=>'localizer', + # For utrace.de API documentation, see http://en.utrace.de/api.php + d1utrace=>{ name=>'utrace', active=>1, - url=>'http://jan.kneschke.de/projects/localizer/index.php?query=', - city=>'<tr><td><b>City<\/b><\/td><td>(.*?)<\/td>', - province=>'<tr><td><b>Province<\/b><\/td><td>(.*?)<\/td><td>', - country=>'<tr><td><b>Country<\/b><\/td><td>(.*?)<\/td>', - provider=>'<tr><td><b>\(Backbone-\)Provider<\/b><\/td><td>(.*?)<\/td>', + url=>'http://xml.utrace.de/?query=', + city=>'<region>(.*?)<\/region>', + province=>'<org>(.*?)<\/org>', + country=>'<countrycode>(.*?)<\/countrycode>', + provider=>'<isp>(.*?)<\/isp>', failure=>'request-limit-exceeded|Host not found'}, d2ipatlas=> { name=>'IP-Atlas', - active=>1, + active=>0, url=>'http://www.xpenguin.com/plot.php?address=', city=>'is located in (.*?),', province=>'is located in.*, (.*?) \(state\),', |
