Sha256: a5e825db1e2d28e3e89af8f5afe4bdc9cda6dcd8015b2605ab343363a5bdf56f
Contents?: true
Size: 439 Bytes
Versions: 6
Compression:
Stored size: 439 Bytes
Contents
require 'open-uri' namespace :eurostat do EUROSTAT_BULK_URL = 'http://ec.europa.eu/eurostat/' \ 'estat-navtree-portlet-prod/BulkDownloadListing' \ '?sort=1&file='.freeze desc 'Download categories from Eurostat Bulk Facility' task :download_categories do File.open('cat.txt', 'w') do |f| IO.copy_stream(open(EUROSTAT_BULK_URL + 'table_of_contents_en.txt'), f) end end end
Version data entries
6 entries across 6 versions & 1 rubygems