82 lines
2.4 KiB
Plaintext
82 lines
2.4 KiB
Plaintext
let
|
|
Kilde = Csv.Document(
|
|
Web.Contents(
|
|
"https://example.sharepoint.com/.../tor_chromium/har_entries.csv"
|
|
),
|
|
[
|
|
Delimiter = ",",
|
|
Columns = 30,
|
|
QuoteStyle = QuoteStyle.None
|
|
]
|
|
),
|
|
|
|
#"Promoted Headers" =
|
|
Table.PromoteHeaders(
|
|
Kilde,
|
|
[PromoteAllScalars = true]
|
|
),
|
|
|
|
#"Changed Column Types" =
|
|
Table.TransformColumnTypes(
|
|
#"Promoted Headers",
|
|
{
|
|
{"har_filename", type text},
|
|
{"search_engine", type text},
|
|
{"entry_index", Int64.Type},
|
|
{"startedDateTime", type datetime},
|
|
{"time_ms", type text},
|
|
{"method", type text},
|
|
{"url", type text},
|
|
{"domain", type text},
|
|
{"path", type text},
|
|
{"query_text", type text},
|
|
{"status", Int64.Type},
|
|
{"statusText", type text},
|
|
{"request_cookie_count", Int64.Type},
|
|
{"response_cookie_count", Int64.Type},
|
|
{"query_param_count", Int64.Type},
|
|
{"request_header_count", Int64.Type},
|
|
{"response_header_count", Int64.Type},
|
|
{"tracking_hint", type text}
|
|
},
|
|
"en"
|
|
),
|
|
|
|
#"Added Search Engine Column" =
|
|
Table.AddColumn(
|
|
#"Changed Column Types",
|
|
"SearchEngine",
|
|
each
|
|
if Text.Contains([har_filename], "bing")
|
|
then "Bing"
|
|
else if Text.Contains([har_filename], "google")
|
|
then "Google"
|
|
else if Text.Contains([har_filename], "duckduckgo")
|
|
then "DuckDuckGo"
|
|
else if Text.Contains([har_filename], "brave")
|
|
then "Brave"
|
|
else "Unknown"
|
|
),
|
|
|
|
#"Added Proxy Column" =
|
|
Table.TransformColumnTypes(
|
|
Table.AddColumn(
|
|
#"Added Search Engine Column",
|
|
"Proxy",
|
|
each "Tor"
|
|
),
|
|
{{"Proxy", type text}}
|
|
),
|
|
|
|
#"Added Browser Column" =
|
|
Table.TransformColumnTypes(
|
|
Table.AddColumn(
|
|
#"Added Proxy Column",
|
|
"Browser",
|
|
each "Chromium"
|
|
),
|
|
{{"Browser", type text}}
|
|
)
|
|
|
|
in
|
|
#"Added Browser Column" |