Created
October 13, 2020 01:13
-
-
Save ptyx507/3329c32b38b28cd87b831d4e067cc627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
Source = Web.BrowserContents("https://asamblea.gob.pa/index.php/seguimiento-legislativo"), | |
#"Extracted Table From Html" = Html.Table(Source, {{"Column1", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(1)"}, {"Column2", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(2)"}, {"Column3", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(3)"}, {"Column4", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(4)"}, {"Column5", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(5)"}, {"Column6", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(6)"}, {"Column7", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(7)"}, {"Column8", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(8)"}, {"Column9", "TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR > :nth-child(9)"}}, [RowSelector="TABLE.views-table.views-view-table.cols-9.table.table-responsive > * > TR"]), | |
#"Promoted Headers" = Table.PromoteHeaders(#"Extracted Table From Html", [PromoteAllScalars=true]), | |
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Codigo de etapa", type text}, {"Fecha presentación", type date}, {"Anteproyecto", Int64.Type}, {"Proyecto", Int64.Type}, {"Título", type text}, {"Proponentes", type text}, {"Comisión", type text}, {"Etapas", type text}, {"Documento", type text}}) | |
in | |
#"Changed Type" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment