Forum Discussion

heriberto_mb's avatar
heriberto_mb
Frequent Visitor
1 year ago
Solved

Extract data after html tag

I want to extract the system status from the following page:  https://www.akamaistatus.com/   I was able to pull the html data, now I just want to pull the line that says "All Systems Operational"...
  • Ahmedx's avatar
    1 year ago

    pls try this

     

    let
        Source = Text.FromBinary(Web.Contents("https://www.akamaistatus.com/")),
        Text = Text.BetweenDelimiters( Source, "<span class=""status font-large"">", "<span class=""last-updated-stamp  font-small""></span>" ),
        ImportedText = List.RemoveMatchingItems( List.Transform(Lines.FromText(Text),(x)=> Text.Trim(x)),{""}){0}
    in
        ImportedText