mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
Start building a provider scrape system
This commit is contained in:
16
src/main/builder.ts
Normal file
16
src/main/builder.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Fetcher } from '@/utils/fetcher';
|
||||
|
||||
export interface ProviderBuilderOptions {
|
||||
// fetcher, every web request gets called through here
|
||||
fetcher: Fetcher;
|
||||
|
||||
// proxied fetcher, if the scraper needs to access a CORS proxy. this fetcher will be called instead
|
||||
// of the normal fetcher. Defaults to the normal fetcher.
|
||||
proxiedFetcher?: Fetcher;
|
||||
}
|
||||
|
||||
export interface Providers {}
|
||||
|
||||
export function makeProviders(ops: ProviderBuilderOptions): Providers {
|
||||
return {};
|
||||
}
|
Reference in New Issue
Block a user