Skip to content

Web scraper for Phantom of the Night Genshin Impact web event

Notifications You must be signed in to change notification settings

Pawel-Parma/dademoiselle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dademoiselle

A web scraper that fetches background from Genshin Impact web event Phantom of the Night, to merge them into a video for animated wallpaper.

Note:
The images have "Phantom of the Night" written on them.
It has to be removed manually, which is a tedious process.

Note:
The images are in 960x540 resolution.
It is recommended to upscale them to 1920x1080 resolution before removing "Phantom of the Night" writing.
You can also change the resolution in src/consts.rs

Note:
The code works only on windows as this is the only chromedriver distribution included.
To run on other platforms, download the appropriate chromedriver from here, and put it in chromedriver directory with chromedriver as name.

Usage

1. Ensure ffmpeg is installed

ffmpeg -version

If it is not installed, download from here

2. Build the project

cargo build --release -p dademoiselle --bin dademoiselle

3. Run the project

3.1. Scrape the images

target\release\dademoiselle.exe scrape fetch

3.2 Prepare the images

Manually upscale the images and remove the "Phantom of the Night" writing.

3.3. Merge the images into a video

target\release\dademoiselle.exe merge X

Where X is the fetch run number

4. Output

The video will be saved in the gen/videos/runX directory, where X is the fetch run number.