biuuu / genshin-wish-export

Easily export the Genshin Impact wish record.
MIT License
3.77k stars 396 forks source link

Alternative to get gacha url #142

Open phuchptty opened 2 years ago

phuchptty commented 2 years ago

I found another place log gacha history URL. It's in <GENSHIN INSTALLATION FOLDER>/Genshin Impact game\GenshinImpact_Data\webCaches\Cache\Cache_Data\data_2

It's a cache folder of webview in binary format. But the URL is still in text and can be searched. Game install folder can find in Windows Registry.

image

biuuu commented 2 years ago

Useful information, but reading this file may require administrator permissions. @Lightczx

Lightczx commented 2 years ago

@Scighost

Lightczx commented 2 years ago

CN: %install location%\Genshin Impact Game\YuanShen_Data\webCaches\Cache\Cache_Data\data_2

Scighost commented 2 years ago

5CFAB6FFDBEBDB89A182060C28A9747F

phuchptty commented 2 years ago

Note: read from the end of the file

Lightczx commented 2 years ago

@phuchptty https://github.com/chromium/chromium/tree/main/net/disk_cache/blockfile

Did some research and found we should head to the index first. Then by the content in the index, we can search through the data file

TremblingMoeNew commented 2 years ago

Paimon-moe's Powershell script to get url from cache https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235

phuchptty commented 2 years ago

according to paimon-moe's script. seem links will appear only in data_2

biuuu commented 2 years ago

Paimon-moe's Powershell script to get url from cache https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235

This version does not take effect in the CN client, I fixed it. https://gist.github.com/biuuu/7a0e180dab0dee88722e90d625f9613b

Lightczx commented 2 years ago

Already Done.

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder

TremblingMoeNew commented 2 years ago

Already Done.

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder

No overseas client support.

Lightczx commented 2 years ago

Already Done. https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder

No overseas client support.

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder/blob/3988683bd84eb573e4b3d330fff03baf4693d4b0/Snap.Hutao.GachaLog.UrlFinder/Program.cs#L22-L25

TremblingMoeNew commented 2 years ago

Already Done. https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder

No overseas client support.

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder/blob/3988683bd84eb573e4b3d330fff03baf4693d4b0/Snap.Hutao.GachaLog.UrlFinder/Program.cs#L22-L25

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder/blob/3988683bd84eb573e4b3d330fff03baf4693d4b0/Snap.Hutao.GachaLog.UrlFinder/Program.cs#L47-L48

Lightczx commented 2 years ago

Already Done. https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder

No overseas client support.

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder/blob/3988683bd84eb573e4b3d330fff03baf4693d4b0/Snap.Hutao.GachaLog.UrlFinder/Program.cs#L22-L25

https://github.com/DGP-Studio/Snap.Hutao.GachaLog.UrlFinder/blob/3988683bd84eb573e4b3d330fff03baf4693d4b0/Snap.Hutao.GachaLog.UrlFinder/Program.cs#L47-L48

I forget.