mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-06-05 17:14:25 -04:00

Some checks are pending
Build Debian package / build (push) Waiting to run
Build Docker image / buildx (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
45 lines
744 B
Python
45 lines
744 B
Python
"""
|
|
Hookspec for ArchiveBox system events that plugins can hook into.
|
|
|
|
Loosely modeled after Django's signals architecture.
|
|
https://docs.djangoproject.com/en/5.1/ref/signals/
|
|
"""
|
|
|
|
__package__ = 'abx.archivebox'
|
|
|
|
import abx
|
|
|
|
|
|
|
|
@abx.hookspec
|
|
def on_crawl_schedule_tick(crawl_schedule):
|
|
pass
|
|
|
|
|
|
|
|
|
|
@abx.hookspec
|
|
def on_seed_post_save(seed, created=False):
|
|
...
|
|
|
|
@abx.hookspec
|
|
def on_crawl_post_save(crawl, created=False):
|
|
...
|
|
|
|
|
|
@abx.hookspec
|
|
def on_snapshot_post_save(snapshot, created=False):
|
|
...
|
|
|
|
# @abx.hookspec
|
|
# def on_snapshot_post_delete(snapshot):
|
|
# ...
|
|
|
|
|
|
@abx.hookspec
|
|
def on_archiveresult_post_save(archiveresult, created=False):
|
|
...
|
|
|
|
# @abx.hookspec
|
|
# def on_archiveresult_post_delete(archiveresult):
|
|
# ...
|