[Dxspider-support] QRZ lookups via DX Spider

Dirk Koopman djk at tobit.co.uk
Sat Aug 6 20:18:04 BST 2016


Connect to your node, and either run console.pl or telnet localhost 7300

type in: set/debug qrz

In another window run: watchdbg qrz   (that may be /spider/perl/watchdbg 
depending on whether you have followed the advice in the admin manual)

In the console/telnet session try a sh/qrz on a callsign. You should see 
something like this:

$ watchdbg qrz
18:59:32 <- I G1TLH sh/qrz g1tlh
18:59:32 qrz: 
xml.qrz.com:80/xml/current/?callsign=g1tlh;username=xxxxxxx;password=yyyyyyy;agent=dxspider
18:59:32 -> D G1TLH show/qrz Working...
18:59:33 qrz: blank <?xml version="1.0" encoding="utf-8" ?>
18:59:33 qrz: blank <QRZDatabase version="1.33" xmlns="http://xml.qrz.com">
18:59:33 qrz: blank <Callsign>
18:59:33 qrz: go <call>G1TLH</call>
18:59:33 -> D G1TLH qrz> call      : G1TLH
18:59:33 qrz: go <fname>D J</fname>
18:59:33 -> D G1TLH qrz> fname     : D J
18:59:33 qrz: go <name>KOOPMAN</name>
18:59:33 -> D G1TLH qrz> name      : KOOPMAN
18:59:33 qrz: go <addr2>Graffham, West Sussex</addr2>
18:59:33 -> D G1TLH qrz> addr2     : Graffham, West Sussex
18:59:33 qrz: go <country>England</country>
18:59:33 -> D G1TLH qrz> country   : England
18:59:33 qrz: go </Callsign>
18:59:33 qrz: skip <Session>
18:59:33 qrz: skip <Key>d95b349b94323a9305a9a1c3ec258cda</Key>
18:59:33 qrz: skip <Count>438</Count>
18:59:33 qrz: skip <SubExp>non-subscriber</SubExp>
18:59:33 qrz: skip <Message>A subscription is required to access the 
complete record.</Message>
18:59:33 qrz: skip <GMTime>Sat Aug  6 18:59:30 2016</GMTime>
18:59:33 qrz: skip <Remark>cpu: 0.143s</Remark>
18:59:33 qrz: skip </Session>
18:59:33 qrz: skip </QRZDatabase>
18:59:33 -> D G1TLH Data provided by www.qrz.com

You must have a valid username and password on qrz.com. You *may* have 
to have or have had a subscription. This is a reminder for me to renew mine.

If you try to run the query on the command line using say GET or "wget 
-O -" then don't forget to enclose the actual URL in SINGLE quotes (') 
as ? is a shell escape character and what will be sent will not be complete.

Dirk G1TLH

PS If you expect to supply a working sh/qrz to your users, then you 
should consider getting a subscription to qrz.com. This seems to me to 
be only reasonable.


On 06/08/16 16:56, Michael Carper, Ph.D. wrote:
> I'm doing the same thing, but I get:
> qrz> Error   : Username / password required
>
> And I surely have my username and password in the file.
>
> My Internet.pm file is as follows:
>
> ****************************
>
> #
> # in order for you to use the internet accessing routines you
> # need to set various flags and things in this file
> #
> # BUT DO NOT ALTER THIS FILE! It will be overwritten on every update
> #
> # COPY this file to ../local, alter it there and restart the software
> #
> # Copyright (c) 2000 Dirk Koopman G1TLH
> #
> #
> #
> package Internet;
> #
> # set this flag to 1 if you want to allow internet commands
> #
> $allow = 1;
> #
> # QRZ.com user id
> #
> # set this to your QRZ user name (you need this for the sh/qrz
> # command)
> #
> # eg
> $qrz_uid = 'wa9pie';
> #
> $qrz_uid = undef;
>
> #
> # QRZ.com password - this goes with your user id above
> #
> # eg
> $qrz_pw = 'xxxxxxxxxxx';
> #
> $qrz_pw = undef;
> #
> # the address of any HTTP proxy you might be using
> #
> # leave as is unless you need one
> #
> # eg:  $http_proxy = 'wwwcache.demon.co.uk <http://wwwcache.demon.co.uk>';
> #
> $http_proxy = undef;
> #
> # HTTP proxy port - again leave alone unless you need this
> #
> # eg: $http_proxy_port = 8080;
> #
>
> #
> # list of urls and other things that are used in commands, here so 
> that they
> # can be changed if necessary.
> #
> $qrz_url = 'xmldata.qrz.com <http://xmldata.qrz.com>';     # used by 
> show/qrz
> $wm7d_url = 'www.wm7d.net <http://www.wm7d.net>';   # used by show/wm7d
> $db0sdx_url = 'www.qslinfo.de <http://www.qslinfo.de>'; # used by 
> show/db0sdx
> $db0sdx_path = '/qslinfo';
> $db0sdx_suffix = '.asmx';
> $dx425_url = 'www.iz5fsa.net <http://www.iz5fsa.net>';  # used by show/425
> #$contest_host = 'www.sk3bg.se <http://www.sk3bg.se>';         # used 
> by show/contest
> #$contest_url = "/contest/text";         # used by show/contest
> #SHOW/IK3QAR <callsign> Show the 5 most recent informations found on 
> IK3QAR
> ##Callsign Database about QSL Manager, Manager address and comments. This
> ##command works for sysop subscribed for the service at:
> ## http://www.ik3qar.it/manager/dxc.php
> ##Write the given password below in $ik3qar_pw
> #
> $ik3qar_url = 'www.ik3qar.it <http://www.ik3qar.it>';    # used by 
> show/ik3qar
> $ik3qar_pw = 'PUT-PASSWORD-HERE';    # used by show/ik3qar
> # NOTE: you must copy $ik3qar_* lines to local/Internet.pm for them to 
> have
> # any effect on an already running node.
> #
> #
> # end
> #
> 1;
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20160806/c79205a9/attachment-0001.html>


More information about the Dxspider-support mailing list