Packages

Gigex 🎸 A scraper for gigs.

Current section

Files

Jump to
gigex lib scraper http.ex
Raw

lib/scraper/http.ex

defmodule Gigex.Scraper.HTTP do
@spec get(url :: binary()) :: html :: binary()
def get(url) do
HTTPoison.get!(url,
user_agent: "Gigex (Windows x64)",
timeout: 10_000
).body
end
end