#URL Generation for import script

1 messages · Page 1 of 1 (latest)

amber grove
#

does anyone know why the import script start with the webstatic-sea.hoyoverse.com version of the URL and remake it in to the hk4e-api-os.hoyoverse.com version of the URL? In the data_2 file there seems to be pairs of webstatic-sea.hoyoverse.com and hk4e-api-os.hoyoverse.com version with idential URI which has the same params the importer.ps1 checks.

For one JSON object in data_2, above it there's two URLs. The webstatic version doesn't give proper results and the hk4e-api-os version gives good results. Adjusting the page, size, lang, and gacha_type gives the data the user wants.

It seems the getlink.ps1 file takes the webstatic version and remake it to the hk4e-api-os version but I can't see a reason why. Does someone know the reason?

Link to importer.ps1
https://gist.github.com/MadeBaruna/9ff8b7a2af11f3002395af7963b5ed18
Link to getlink.ps1
https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235

Gist

Paimon.moe Local Importer (Windows). GitHub Gist: instantly share code, notes, and snippets.

Gist

Get Genshin Impact wish history link. GitHub Gist: instantly share code, notes, and snippets.

flat acorn
#

For hsr import

trim perch
#

Android have 2 link will be appear webstatic and hk4e

but some device myb only record hk4e

#

Both link work for paimon

amber grove
# flat acorn For hsr import

I've check the data_2 file for HSR and yes, HSR data_2 has one less URL for each JSON object. But that URL is the one that works when attempting fetch. Even with HSR, I can't see a clear reason to parse the URL and then remake it.

amber grove
trim perch
#

But things like this rarely happen normally when recording will appear 2 links

But in certain cases the link that can be recorded is only one

As with HSR he also has 2 links webstatic and api-os-takumi

amber grove
night maple
#

What matters is the authkey