[Pkg-isocodes-devel] ISO 3166 db

Ron Savage ron at savage.net.au
Thu Sep 29 23:18:31 UTC 2016


Hi Chris

No. I didn't know about that page. I assumed that given they charge for 
documents, that an on-line version would not be available. Let me think 
about it.

On 30/09/16 06:25, Chris Leonard wrote:
> Have you paged through (or scraped) the official site to fnd the discrepancy?
>
> https://www.iso.org/obp/ui/#home
>
> Select the Country codes radio button and return
>
> On Thu, Sep 29, 2016 at 12:21 AM, Ron Savage <ron at savage.net.au> wrote:
>> Hi
>>
>> I'm concerned about the discrepancy between the Debian db of
>> countries/subcountries (https://pkg-isocodes.alioth.debian.org/) and the
>> Wikipedia equivalent (https://en.wikipedia.org/wiki/ISO_3166-1).
>>
>> I'm concentrating on 'has_subcounties' and 'subcountries_in_db' here.
>>
>> My code to report on the Debian db says:
>>
>> countries_in_db => 249.
>> has_subcounties => 198.
>> subcountries_in_db => 4847.
>> subcountry_types_in_db => 92.
>>
>> However, I've written a Perl module
>> WWW::Scraper::Wikipedia::ISO3166 which downloads and scrapes the
>> corresponding Wikipedia pages. It reports:
>>
>> countries_in_db => 249
>> has_subcounties => 200
>> subcountries_in_db => 5297
>> subcountry_categories_in_db => 77
>> subcountry_files_downloaded => 249
>> subcountry_info_in_db => 352
>>
>> Anyone know why there would be such a discrepancy?
>>
>>
>> --
>> Ron Savage - savage.net.au
>>
>> _______________________________________________
>> Pkg-isocodes-devel mailing list
>> Pkg-isocodes-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-isocodes-devel

-- 
Ron Savage - savage.net.au



More information about the Pkg-isocodes-devel mailing list