Skip to content

Latest commit

 

History

History

aecheck

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Logo

Data processing code for AE Check

Bug Report | Request

Python Poetry Supabase


Overview

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.


History

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)

Major data reference

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

Prerequisites

  1. You need to install Python 3.12 and Poetry to manage the packages.

  2. 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"

Run the script locally

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.


Contributing

See the CONTRIBUTING.md.