Files
ArchiveBox/archivebox/pkgs/abx-plugin-wget/abx_plugin_wget/__init__.py
2024-10-28 20:05:20 -07:00

36 lines
597 B
Python

__package__ = 'abx_plugin_wget'
__label__ = 'WGET'
import abx
@abx.hookimpl
def get_CONFIG():
from .config import WGET_CONFIG
return {
'WGET_CONFIG': WGET_CONFIG
}
@abx.hookimpl
def get_BINARIES():
from .binaries import WGET_BINARY
return {
'wget': WGET_BINARY,
}
@abx.hookimpl
def get_EXTRACTORS():
from .extractors import WGET_EXTRACTOR, WARC_EXTRACTOR
return {
'wget': WGET_EXTRACTOR,
'warc': WARC_EXTRACTOR,
}
@abx.hookimpl
def ready():
from .config import WGET_CONFIG
WGET_CONFIG.validate()