thesadru / genshinstats

PLEASE USE GENSHIN.PY A python library that can get the stats of Genshin Impact players using Mihoyo's API. PLEASE USE GENSHIN.PY
https://thesadru.github.io/pdoc/genshinstats/
MIT License
267 stars 38 forks source link

get_user_info limitations #12

Closed rushkii closed 3 years ago

rushkii commented 3 years ago

Hello, I was making a bot for the community in my country on Telegram.

Get user info has a limit when my account reached to fetch >30 people in-game profile, is there any solutions to bypass this? 🤔

errors: genshinstats.errors.GenshinStatsException: 10101 Error (You can access the genshin game records of up to 30 other people)

thesadru commented 3 years ago

huh, I didn't even know there was a limit like that. My guess is that this is Mihoyo's way of preventing people from spamming their API. I think I might just add a way to set multiple cookies at once you can cycle between to make it possible to get multiple users. This will make it pretty annoying since you'll have to create multiple accounts but I can't think of any other solution.

Could you please let me know if you find out how long this ratelimit lasts?

rushkii commented 3 years ago

huh, I didn't even know there was a limit like that. My guess is that this is Mihoyo's way of preventing people from spamming their API. I think I might just add a way to set multiple cookies at once you can cycle between to make it possible to get multiple users. This will make it pretty annoying since you'll have to create multiple accounts but I can't think of any other solution.

Could you please let me know if you find out how long this ratelimit lasts?

I was thought the same, that's why I'm creating a bot. About how long ratelimit lasts I don't know yet, I get this problem about 5 hours ago, I'm about to wait until tomorrow is this ratelimit per-day or permanent.

rushkii commented 3 years ago

huh, I didn't even know there was a limit like that. My guess is that this is Mihoyo's way of preventing people from spamming their API. I think I might just add a way to set multiple cookies at once you can cycle between to make it possible to get multiple users. This will make it pretty annoying since you'll have to create multiple accounts but I can't think of any other solution.

Could you please let me know if you find out how long this ratelimit lasts?

I think I know how long this ratelimit lasts, I waited a day and it can get_user_info again.

thesadru commented 3 years ago

Thanks, adding multiple cookies will be supported in genshinstats 1.4