Skip to content

Commit 480312d

Browse files
authored
docs: Add impit to upgrade guide (#1323)
### Description - add `impit` in upgrade guide
1 parent 0566d64 commit 480312d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/upgrading/upgrading_to_v1.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,25 @@ destination you choose.
174174
- The `set_metadata` method has been removed.
175175
- `resource_directory` from `RequestQueueMetadata` removed – use `path_to_...` property.
176176
- `RequestQueueHead` model replaced with `RequestQueueHeadWithLocks`.
177+
178+
## New default HTTP client
179+
180+
In v1.0, Crawlee introduces a new default HTTP client: `ImpitHttpClient`, based on the [impit](https://apify.github.io/impit/) library, replacing `httpx` as the default HTTP client.
181+
182+
If you want to continue using `HttpxHttpClient`, you can install Crawlee with the `httpx` extension:
183+
184+
```bash
185+
pip install 'crawlee[httpx]'
186+
```
187+
188+
You can then use it like this:
189+
190+
```python
191+
from crawlee.crawlers import HttpCrawler
192+
from crawlee.http_clients import HttpxHttpClient
193+
194+
client = HttpxHttpClient()
195+
crawler = HttpCrawler(http_client=client)
196+
```
197+
198+
You can learn more about available HTTP clients and usage examples in the [HTTP clients guide](https://crawlee.dev/python/docs/guides/http-clients).

0 commit comments

Comments
 (0)