An open API service indexing awesome lists of open source software.

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

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. +