Start building a provider scrape system

This commit is contained in:
mrjvs
2023-08-23 17:56:18 +02:00
parent 80f7cbce0c
commit 61ee0e13fa
10 changed files with 69 additions and 6 deletions

16
src/main/builder.ts Normal file
View 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 {};
}