interface Scraper (View source)

Interface Scraper

A generic interface for scrapers that can scrape data from a given URL and return an iterable of results.

Methods

iterable
scrape(string|null $url)

Scrape data from the given URL and return an iterable of results.

Details

iterable scrape(string|null $url)

Scrape data from the given URL and return an iterable of results.

Parameters

string|null $url

The URL to scrape data from. If null, the scraper may use a default URL or configuration.

Return Value

iterable