mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-27 08:14:38 +02:00
Updated Usage (markdown)
11
Usage.md
11
Usage.md
@@ -191,13 +191,14 @@ which are already in the index.
|
|||||||
## Python API Usage
|
## Python API Usage
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from archivebox.main import add, info, remove, check_data_folder
|
from archivebox.main import add, remove, server
|
||||||
|
|
||||||
|
... # load the archive directory first, see API docs below for more info
|
||||||
|
|
||||||
out_dir = '~/path/to/my/data/folder'
|
|
||||||
check_data_folder(out_dir=out_dir)
|
|
||||||
add('https://example.com', index_only=True, out_dir=out_dir)
|
add('https://example.com', index_only=True, out_dir=out_dir)
|
||||||
info(out_dir=out_dir)
|
remove(...)
|
||||||
remove('https://example.com', delete=True, yes=True, out_dir=out_dir)
|
server(...)
|
||||||
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information see the [Python API Reference](https://docs.archivebox.io/en/latest/archivebox.html).
|
For more information see the [Python API Reference](https://docs.archivebox.io/en/latest/archivebox.html).
|
||||||
|
Reference in New Issue
Block a user