mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
11 lines
343 B
Elixir
11 lines
343 B
Elixir
defmodule PhilomenaProxy.Scrapers.Scraper do
|
|
@moduledoc false
|
|
|
|
alias PhilomenaProxy.Scrapers
|
|
|
|
# Return whether the given URL can be parsed by the scraper
|
|
@callback can_handle?(URI.t(), Scrapers.url()) :: boolean()
|
|
|
|
# Collect upload information from the URL
|
|
@callback scrape(URI.t(), Scrapers.url()) :: Scrapers.scrape_result()
|
|
end
|