mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
12 lines
343 B
Elixir
12 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
|