View Source Mobilizon.Service.RichMedia.Parser (Mobilizon v5.0.0-beta.1)

Module to parse data in HTML pages

Summary

Functions

Get a filename for the fetched data, using the response header or the last part of the URL

Functions

Link to this function

get_filename_from_response(response_headers, url)

View Source
@spec get_filename_from_response(Enum.t(), String.t()) :: String.t() | nil

Get a filename for the fetched data, using the response header or the last part of the URL

@spec parse(String.t()) :: {:ok, map()} | {:error, :http | :parsing | :unknown, any()}