mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 15:03:26 +00:00
spelling/grammar
This commit is contained in:
@@ -21,7 +21,7 @@ Let's get started with `@movie-web/providers`. First lets install the package.
|
||||
To get started with scraping on the **server**, first you have to make an instance of the providers.
|
||||
|
||||
::alert{type="warning"}
|
||||
This snippet will only work on a **server**, for other environments, check out [Usage on X](../2.essentials/0.usage-on-x.md).
|
||||
This snippet will only work on a **server**. For other environments, check out [Usage on X](../2.essentials/0.usage-on-x.md).
|
||||
::
|
||||
|
||||
```ts [index.ts (server)]
|
||||
@@ -39,8 +39,8 @@ const providers = makeProviders({
|
||||
})
|
||||
```
|
||||
|
||||
Perfect, this instance of the providers you can reuse everywhere where you need to.
|
||||
Now lets actually scrape an item:
|
||||
Perfect. You now have an instance of the providers you can reuse everywhere.
|
||||
Now let's scrape an item:
|
||||
|
||||
```ts [index.ts (server)]
|
||||
// fetch some data from TMDB
|
||||
|
@@ -22,7 +22,7 @@ There are breaking changes in this list, make sure to read them thoroughly if yo
|
||||
- Fetchers can now return a full response with headers and everything
|
||||
|
||||
**New features:**
|
||||
- Added system to allow scraping ip locked sources through the consistentIpforRequests option.
|
||||
- Added system to allow scraping IP locked sources through the consistentIpforRequests option.
|
||||
- There is now a `buildProviders()` function that gives a builder for the `ProviderControls`. It's an alternative to `makeProviders()`.
|
||||
- Streams can now return a headers object and a `preferredHeaders` object. which is required and optional headers for when using the stream.
|
||||
|
||||
|
Reference in New Issue
Block a user