Skip to content

Instantly share code, notes, and snippets.

@jogerj
Last active September 2, 2024 16:57
Show Gist options
  • Save jogerj/0339e61a92e0de2e360c5212a94854e8 to your computer and use it in GitHub Desktop.
Save jogerj/0339e61a92e0de2e360c5212a94854e8 to your computer and use it in GitHub Desktop.
Get Wish History URL in Genshin Impact on PC from cache. Moved to https://github.com/jogerj/genshin-wish-url

genshin-wish-url

Further development has been moved to its own repository: https://github.com/jogerj/genshin-wish-url

Usage

  1. Win+R and open powershell (or pwsh if Powershell 6+ installed)
  2. Paste and run following
  • All versions (Global/China)
Set-ExecutionPolicy Bypass -Scope CurrentUser -Force;
iex (irm 'https://github.com/jogerj/genshin-wish-url/raw/main/Get-WishUrl.ps1')
# This is for legacy compatibility to redirect old URL to the new script
# Please use script from https://github.com/jogerj/genshin-wish-url
iex (irm 'https://github.com/jogerj/genshin-wish-url/raw/main/Get-WishUrl.ps1')
@jogerj
Copy link
Author

jogerj commented Jun 25, 2024

@DiaborMagics2 write me here. Some known issues involve having the game path containing unicode characters (non-latin characters), too old powershell/OS, or DNS errors (try ipconfig /flushdns then ipconfig /renew). Can't really tell without having a full output

@DiaborMagics2
Copy link

I figured it out, I guess. Nothing wrong on my end. the ipconfig commands also changed nothing.
However, I tried it on paimon.moe instead of hotgames.gg and there it worked. So I think its on hotgames' end. I can at least continue keeping track now. Many thanks!
Just a shame I now have to switch sites and don't have all the data in one place, but it is what it is.

@jogerj
Copy link
Author

jogerj commented Jun 25, 2024

@DiaborMagics2 the script will only return a valid wish URL, it'll prompt an error otherwise when a link is not found or expired (for sample output, run the script some 24 hours after you last checked wish history). Any other error would be an error on whatever tool/website is used to track your wishes.

@ArberSupremo
Copy link

ArberSupremo commented Jun 26, 2024

@jogerj I think Hotgames.gg still uses 6 months wish history, does a script that makes you extract only 6 months instead of 1 year of wish history exist?

@jogerj
Copy link
Author

jogerj commented Jun 26, 2024

@ArberSupremo Doesn't matter, same wish url. The url is used to fetch the data and scrolls through the pages until earliest wish is loaded. In normal circumstances, if existing data for wishes up to the last imported wish is already loaded, there should not be no new wishes appearing before that point, so the script stops scrolling further. The extension from 6 to 12 months of wish history is a one time exception that breaks this rule.

In paimon.moe you'd solve this by force import (which ignores existing wish data)

@jogerj
Copy link
Author

jogerj commented Aug 31, 2024

Hello, this repository has been moved to https://github.com/jogerj/genshin-wish-url for ease of issue reporting and tracking changes. Please use the script directly from the linked repo. Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment