You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We provide an abstract base class, <ApiLinkto="class/BaseHttpClient">`BaseHttpClient`</ApiLink>, which defines the necessary interface for all HTTP clients. HTTP clients are responsible for sending requests and receiving responses, as well as managing cookies, headers, and proxies. They provide methods that are called from crawlers. To implement your own HTTP client, inherit from the <ApiLinkto="class/BaseHttpClient">`BaseHttpClient`</ApiLink> class and implement the required methods.
50
+
We provide an abstract base class, <ApiLinkto="class/HttpClient">`HttpClient`</ApiLink>, which defines the necessary interface for all HTTP clients. HTTP clients are responsible for sending requests and receiving responses, as well as managing cookies, headers, and proxies. They provide methods that are called from crawlers. To implement your own HTTP client, inherit from the <ApiLinkto="class/HttpClient">`HttpClient`</ApiLink> class and implement the required methods.
Copy file name to clipboardExpand all lines: docs/guides/storages.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Crawlee offers multiple storage types for managing and persisting your crawling
30
30
31
31
## Storage clients
32
32
33
-
Storage clients in Crawlee are subclasses of <ApiLinkto="class/BaseStorageClient">`BaseStorageClient`</ApiLink>. They handle interactions with different storage backends. For instance:
33
+
Storage clients in Crawlee are subclasses of <ApiLinkto="class/StorageClient">`StorageClient`</ApiLink>. They handle interactions with different storage backends. For instance:
34
34
35
35
- <ApiLinkto="class/MemoryStorageClient">`MemoryStorageClient`</ApiLink>: Stores data in memory and persists it to the local file system.
36
36
-[`ApifyStorageClient`](https://docs.apify.com/sdk/python/reference/class/ApifyStorageClient): Manages storage on the [Apify platform](https://apify.com). Apify storage client is implemented in the [Apify SDK](https://github.com/apify/apify-sdk-python).
@@ -52,7 +52,7 @@ where:
52
52
-`{STORAGE_ID}`: The ID of the specific storage instance (default: `default`).
53
53
54
54
:::info NOTE
55
-
The current <ApiLinkto="class/MemoryStorageClient">`MemoryStorageClient`</ApiLink> and its interface is quite old and not great. We plan to refactor it, together with the whole <ApiLinkto="class/BaseStorageClient">`BaseStorageClient`</ApiLink> interface in the near future and it better and and easier to use. We also plan to introduce new storage clients for different storage backends - e.g. for [SQLLite](https://sqlite.org/).
55
+
The current <ApiLinkto="class/MemoryStorageClient">`MemoryStorageClient`</ApiLink> and its interface is quite old and not great. We plan to refactor it, together with the whole <ApiLinkto="class/StorageClient">`StorageClient`</ApiLink> interface in the near future and it better and and easier to use. We also plan to introduce new storage clients for different storage backends - e.g. for [SQLite](https://sqlite.org/).
56
56
:::
57
57
58
58
You can override default storage IDs using these environment variables: `CRAWLEE_DEFAULT_DATASET_ID`, `CRAWLEE_DEFAULT_KEY_VALUE_STORE_ID`, or `CRAWLEE_DEFAULT_REQUEST_QUEUE_ID`.
Copy file name to clipboardExpand all lines: docs/upgrading/upgrading_to_v0x.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,13 @@ This section summarizes the breaking changes between v0.5.x and v0.6.0.
13
13
14
14
The `Configuration` fields `chrome_executable_path`, `xvfb`, and `verbose_log` have been removed. The `chrome_executable_path` and `xvfb` fields were unused, while `verbose_log` can be replaced by setting `log_level` to `DEBUG`.
15
15
16
+
### Abstract base classes
17
+
18
+
We decided to move away from [Hungarian notation](https://en.wikipedia.org/wiki/Hungarian_notation) and remove all the `Base` prefixes from the abstract classes. It includes the following public classes:
19
+
-`BaseStorageClient` -> `StorageClient`
20
+
-`BaseBrowserController` -> `BrowserController`
21
+
-`BaseBrowserPlugin` -> `BrowserPlugin`
22
+
16
23
## Upgrading to v0.5
17
24
18
25
This section summarizes the breaking changes between v0.4.x and v0.5.0.
0 commit comments