Экспорт данных из Эгеи
-
open terminal
-
clone the repo
git clone https://github.com/Sasha-Mikhailov/Aegea_export.git cd Aegea_export
-
fill database credentials to the
.env
file:nano .env
- DB_USER
- DB_PASSWORD
- DB_HOST
- DB_NAME
- BLOG_URL (not neccessary, just for fine URLs in the result file)
-
install a
virtualenv
pip3 install virtualenv
-
create a new one for the repo:
virtualenv -p python3 venv
-
activate virtual environment
source venv/bin/activate
-
install dependencies according to the requirements.txt
pip install -r requirements.txt
-
run the script
python3 main.py
(install Python from original website, find your OS in section 'Files')
script's logic
- gets database's credentials from
.env
file - connects to the database
- executes SQL query to fetch data
- writes the result to folder
output