ail-project / lacus Goto Github PK
View Code? Open in Web Editor NEWLacus is a capturing system using playwright, as a web service.
License: BSD 3-Clause "New" or "Revised" License
Lacus is a capturing system using playwright, as a web service.
License: BSD 3-Clause "New" or "Revised" License
A capturing system using playwright, as a web service.
You need poetry installed, see the install guide.
You need to have redis cloned and installed in the same directory you clone this template in:
this repository and redis
must be in the same directory, and not redis
cloned in this directory. See this guide.
Clone this repository:
git clone https://github.com/ail-project/lacus.git
From the directory you just cloned, run:
cd lacus
poetry install
Install the system dependencies required by playwright (will call sudo):
poetry shell
playwright install-deps
Initialize the .env
file:
echo LACUS_HOME="`pwd`" >> .env
Initialize the config and install playwright browsers:
poetry run update --init
* Restarting
Continue? (y/N) <-- N
Okay, quitting.
Clone the Redis server:
pushd ..
git clone https://github.com/antirez/redis.git
pushd redis
git checkout 7.0
make
popd
popd
poetry run start
: This command is used to start a Lacus servicepoetry run start
poetry run stop
: This command is used to stop a Lacus servicepoetry run stop
poetry run update
: This command is used to update the project dependencies according to the configurations defined in the pyproject.toml
file.poetry run update
poetry run shutdown
: This command is used to completely shut down a Lacus servicepoetry run shutdown
poetry run run_backend
: This command is used to manager the backend redispoetry run run_backend --help
-h, --help show this help message and exit
--start Start all
--stop Stop all
--status Show status
poetry run start_website
: This command is used to start the web serverpoetry run start_website
poetry run capture_manager
: This command is used to start the capture manager for data.poetry run capture_manager
poetry run stop_capture_manager
: This command is used to stop the running capture manager.poetry run stop_capture_manager
Statistics by day:
It is not super safe, but most of the time, the changes only apply to the process running the captures. Restarting this process only will most of the time be good enough and this way we won't trigger exceptions on the client side.
It would be nice to catch CTRL+C passed to the capture_manager
in order to wait for the ongoing captures to finish but SIGINTs are directly passed to playwright and the browser is killed instantly: microsoft/playwright-python#1170
Alternative solution: catching SIGTERM instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.