This project automates the extraction of profile data from the SDVX (Sound Voltex) game website using Cypress for end-to-end testing. The extracted data is saved as a JSON file and can be uploaded to a web server.
- Automated Profile Data Extraction: Extracts player information, stats, and play history from the SDVX profile page.
- Image Handling: Downloads and encodes images (e.g., profile card, skill level icons) as Base64.
- JSON Export: Saves the extracted data to a JSON file for further use.
- GitHub Actions Integration: Automates the process via a CI/CD pipeline, including running tests and uploading results to a web server.
- Node.js: Version 23 or higher.
- Cypress: Installed via
npm
. - Google Chrome: Required for running Cypress tests.
- Clone the repository:
git clone <repository-url> cd <repository-folder>
- Install dependencies:
npm install
- Set up Cypress environment variables:
AddCOOKIE_M573SSID
to your local cypress.env.json file:{ "COOKIE_M573SSID": "<your_cookie_value>" }
- Run Cypress Tests:
Execute the tests to extract profile data:npx cypress run --spec cypress/e2e/sdvx.cy.js --browser chrome
- Extract Profile Data:
The extracted data will be saved in thecypress/fixtures/SDVXprofileData.json
file.
Follow these steps to retrieve the M573SSID
cookie from your browser:
Navigate to the SDVX profile page:
https://p.eagate.573.jp/game/sdvx/vi/playdata/profile/index.html.
Ensure you are logged in to your account.
- Windows/Linux: Press
F12
orCtrl+Shift+I
- Mac: Press
Cmd+Option+I
- In Developer Tools, click the Application tab.
- If not visible, click the
>>
icon to find it in the overflow menu.
- In the left sidebar under Storage, expand Cookies.
- Select the domain:
p.eagate.573.jp
.
- Look for the
M573SSID
cookie in the list. - Copy its Value field.
Replace <your_cookie_value>
in your cypress.env.json
file:
{
"COOKIE_M573SSID": "your_copied_cookie_value"
}