Code and templates used to take screenshots and generate HTML for the gallery on:
The requirements should be installed on the system before you can run the scraper. These can be installed with the following commands:
apt install python3 python3-pip python3-venv
apt install libxss1 libatk-bridge2.0-0 libgtk-3-0
apt install fonts-liberation
The update script assumes that a python virtual environment is used named env
.
Create a new virtual environment first using this command:
python3 -m venv env
Then enter the environment and install the required Python packages:
source env/bin/activate
pip install -r requirements.txt
The program follows the following update pipeline:
start
|
V
+---------------------------+
| Get users & timestamps |
| from remote server. |
+---------------------------+
|
V
+---------------------------+
| Merge with cached data. |
+---------------------------+
|
V
+---------------------------+
| Update outdated |
| screenshots. |
+---------------------------+
|
V
+---------------------------+
| Generate & zip website. |
+---------------------------+
|
V
+---------------------------+
| Send to remote server |
| and unzip. |
+---------------------------+