Forum Discussion

fjjohann's avatar
fjjohann
Frequent Visitor
8 years ago

Reading Zip files many web sources

I'm doing a webzip capture through the tutorial:
http://sql10.blogspot.com.br/2016/06/reading-zip-files-in-powerquery-m.html

 

It's working perfectly.

However, I need to make the caputra from several sources at the same time.

 

There are numerous web links, for example:

 

http://agencia.tse.jus.br/estatistica/sead/eleitorado/filiados/uf/filiados_PARTIDO_UF.zip
http://agencia.tse.jus.br/estatistica/sead/eleitorado/filiados/uf/filiados_PARTIDO_UF.zip
http://agencia.tse.jus.br/estatistica/sead/eleitorado/filiados/uf/filiados_PARTIDO_UF.zip

 

I have 2 tables with the data:
PARTIDO
UF

 

which can be used to make the substitution in the links.

 

Attention: the links are .zip files, so for the solution I'm using (http://sql10.blogspot.com.br/2016/06/reading-zip-files-in-powerquery-m.html) it already uses a custom function to be able to extract. But I can only do this from 1 source at a time.