https://github.com/pawel-parma/dademoiselle
Web scraper for Phantom of the Night Genshin Impact web event
https://github.com/pawel-parma/dademoiselle
genshin genshin-impact genshinimpact image-scraper image-scraping imagescraper imagescraping rust rust-scraping scraper web-scraper web-scraping webscraper webscraping
Last synced: 4 months ago
JSON representation
Web scraper for Phantom of the Night Genshin Impact web event
- Host: GitHub
- URL: https://github.com/pawel-parma/dademoiselle
- Owner: Pawel-Parma
- License: other
- Created: 2024-04-27T18:11:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-23T21:03:32.000Z (8 months ago)
- Last Synced: 2025-03-23T22:19:30.521Z (8 months ago)
- Topics: genshin, genshin-impact, genshinimpact, image-scraper, image-scraping, imagescraper, imagescraping, rust, rust-scraping, scraper, web-scraper, web-scraping, webscraper, webscraping
- Language: Rust
- Homepage:
- Size: 8.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= 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:* +
To run the code download the appropriate chromedriver from https://googlechromelabs.github.io/chrome-for-testing/#stable[here], and put it in `chromedriver` directory with `chromedriver` as name.
____
== Usage
=== 1. Ensure ffmpeg is installed
[source,bash]
----
ffmpeg -version
----
If it is not installed, download from https://ffmpeg.org/download.html[here]
=== 2. Build the project
[source,bash]
----
cargo build --release -p dademoiselle --bin dademoiselle
----
=== 3. Run the project
==== 3.1. Scrape the images
[source,bash]
----
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
[source,bash]
----
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. +