Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 976 Bytes

builtwith.livemd

File metadata and controls

58 lines (44 loc) · 976 Bytes

Builtwith

Mix.install([
  {:httpoison, "~> 2.2"},
  {:jason, "~> 1.4"},
  {:builtwith, "~> 0.1.1"}
])

Section

bw_pass = System.fetch_env!("LB_BUILTWITH")
domain = "example.com"
webresponse = Builtwith.make_request(domain: domain, bwpass: bw_pass)
Builtwith.get_lookup(webresponse)
Builtwith.get_meta(webresponse)
Builtwith.get_attributes(webresponse)
Builtwith.get_technologies(webresponse) |> Map.keys()
Builtwith.get_technologies(webresponse) |> Map.get("Web Server")
Builtwith.get_spend(webresponse)
Builtwith.get_db_status(webresponse)
Builtwith.get_results(webresponse)
|> Enum.find(fn map -> Map.has_key?(map, "SalesRevenue") end)
|> Map.get("SalesRevenue")