Data processing code for AE Check
Bug Report
|
Request
Data processing code for AE Check.
It is processed manually on my local machine.
The processed data is updated to the PostgreSQL database powered by Supabase.
Period | Description |
---|---|
2021.02 ~ 2022.09 | Manually processed the JSON data |
2022.09 ~ 2023.09 | Used python script to process data (v2) |
2023.09 ~ 2024.10 | Changed the data schema, configured auto-migration via GitHub Actions (v3) |
2024.10 ~ | Migrated data to Supabase, deployed the backend (v3.1) |
Data source | Description |
---|---|
Raw application | I'm using mobile emulator to extract images directly. |
altema.jp | To scrape japanese data |
AE wiki | To scrape english data |
Seesaa Wiki | For additional information |
-
You need to install Python 3.12 and Poetry to manage the packages.
-
You need to set environment variables to run the script.
POSTGRES_HOST= POSTGRES_PORT= POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_DBNAME= AECHECK_UPLOAD_URL="presigned-url-to-upload-images"
Activate the virtual environment
poetry shell
Install packages
This will install the required packages in the whole repository.
poetry install
Run the script
If you want to update the character data, run aecheck/update.py
.
Otherwise, if you want to compare the processed character data with the database, run aecheck/compare.py
.
See the CONTRIBUTING.md.