Use this module to interact with a Lacus instance.
pip install pylacusYou can use the pylacus command:
$ pylacus -h usage: pylacus [-h] --url-instance URL_INSTANCE [--redis_up]{enqueue,status,result} ... Query a Lacus instance. positional arguments:{enqueue,status,result} Available commands enqueue Enqueue a url for capture status Get status of a capture result Get result of a capture. options: -h, --help show this help message and exit --url-instance URL_INSTANCE URL of the instance. --redis_up Check if redis is up. See API Reference
frompylacusimportPyLacuslacus=PyLacus("http://127.0.0.1:7100") uuid=lacus.enqueue(url='google.fr')status=lacus.get_capture_status(uuid)result=lacus.get_capture(uuid)