torikushiii / hoyolab-auto

Auto check-in and others for any Hoyoverse games
https://ko-fi.com/torikushiii
GNU Affero General Public License v3.0
98 stars 23 forks source link

Change redemption in Google Script to do the same scraping as the docker instance? #74

Open Aida-Enna opened 3 days ago

Aida-Enna commented 3 days ago

The API that you're using for the Google Script code redeems doesn't seem to be updating, or updates once every 2? weeks. For example, it didn't have one of the codes for a week and a half, and now it doesn't have the two newest codes in there despite parsing Prydwen in it's source.

I made an issue on their API github but haven't received a response (or fix) in 2 weeks.

I'm not sure if it's just HKRPG either. Sorry for the trouble!

If this is too outside the scope of the google script (which I would understand!), just let me know and I'll switch to the docker instance.

torikushiii commented 1 day ago

I'm pretty sure Google Apps Script doesn't support web scraping, but then again, its main purpose is for handling simple tasks like automating check-ins. I could look around for anyone hosting an API for the codes; the only one I currently know about is this one Star Rail API https://api.ennead.cc/starrail/code.