Commit Graph

11 Commits

Author SHA1 Message Date
Magnus Müller 495804389c Refactor download_file example to use updated Browser class
This commit modifies the `download_file.py` example to replace the `BrowserSession` and `BrowserProfile` with the new `Browser` class. The changes streamline the code and enhance clarity by directly utilizing the `Browser` for managing downloads. The download path remains set to a temporary directory for testing purposes.
2025-09-06 15:56:09 -07:00
Magnus Müller a694501294 Enhance DownloadsWatchdog to expand and resolve download paths
This commit updates the DownloadsWatchdog class to ensure that the downloads directory path is properly expanded and resolved to an absolute path. The changes include:

- Expanding the downloads path using `expanduser()` and `resolve()` methods to handle user home directories correctly.
- Updating the download behavior settings to use the expanded path.
- Ensuring that the downloads directory is created with the resolved path.

Additionally, the example feature for downloading files has been modified to use a temporary downloads path for testing purposes.
2025-09-06 15:53:16 -07:00
Magnus Müller 55b433d740 Feature examples 2025-08-18 19:17:02 -07:00
Gregor Žunič 7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting f878b8f07c type hint fixes 2025-06-21 05:16:02 -07:00
Nick Sweeting 767a75e2bf rename downloads_dir to downloads_path 2025-06-05 02:17:57 -07:00
Nick Sweeting a85ae8ca3c merge save_downloads_path and downloads_dir duplicate options 2025-05-29 14:51:21 -07:00
Nick Sweeting 63382d8bfc update examples to use new BrowserProfile and BrowserSession 2025-05-20 02:32:43 -07:00
Nick Sweeting 3e66046046 linter 2025-05-13 17:18:50 -07:00
Nick Sweeting bfcd8a0140 make examples imports more consistent 2025-05-13 17:18:09 -07:00
j0yk1ll 400c8b813a fix: enable downloads 2025-01-26 15:44:44 +01:00