Initial commit
This commit is contained in:
11
lib/ex_data_gov_u_a/resource/base.ex
Normal file
11
lib/ex_data_gov_u_a/resource/base.ex
Normal file
@@ -0,0 +1,11 @@
|
||||
defmodule ExDataGovUA.Resource.Base do
|
||||
def download(url, _filename) do
|
||||
url
|
||||
|> ExDataGovUA.Streamers.HttpStreamer.get()
|
||||
|> ExDataGovUA.Archivers.Gz.inflate()
|
||||
|> ExDataGovUA.Decoders.JaxonDecoder.decode()
|
||||
|> Enum.to_list()
|
||||
# |> Stream.run()
|
||||
# |> ExDataGovUA.Streamers.FileStreamer.export(filename)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user