Commit be6acc8
authored
fix(academy): use export_data() with keyword arguments (#2171)
Enabled by apify/crawlee-python#1597
Fixes #2112
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switches Python Crawlee examples to the unified
`crawler.export_data()` API in the Academy lessons, replacing deprecated
`export_data_json`/`export_data_csv` calls while preserving parameters.
>
> - In `12_framework.md`, update export examples (including logging and
exercise solutions) to `await crawler.export_data(path='dataset.json',
ensure_ascii=False, indent=2)` and `await
crawler.export_data(path='dataset.csv')`
> - In `13_platform.md`, update export calls in the platform lesson to
the same `export_data()` usage
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
3546f60. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 7fed112 commit be6acc8
2 files changed
Lines changed: 8 additions & 8 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | | - | |
| 392 | + | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | | - | |
| 601 | + | |
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments