Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Import Kakaotalk stickers #37

Open
ReturnToFirst opened this issue Jun 4, 2024 · 4 comments · May be fixed by #38
Open

Can't Import Kakaotalk stickers #37

ReturnToFirst opened this issue Jun 4, 2024 · 4 comments · May be fixed by #38

Comments

@ReturnToFirst
Copy link

ScreenShot 2024-06-04 183006

Bot can't download kakaotalk's sticker.

It seems like endpoint that download kakaotalk's stickers zip file(item.kakaocdn.net)'s API was changed.

@ReturnToFirst
Copy link
Author

I checked API, There is change on way to get Emoticon ID in Kakao emoticon store.
It change every request, need to find some way to 'real' emoticon id.

@laggykiller
Copy link

laggykiller commented Jun 5, 2024

https://github.com/laggykiller/sticker-convert/blob/1be9034ebede7be2a35163e71a839e5f1f740b20/src/sticker_convert/downloaders/download_kakao.py#L45-L86

The fake emoticon id needs to be converted to real emoticon id by javascript function emoticonDeepLink() involving xor and adding. The fake emoticon id and the numbers inside that function are different everytime, but the real emoticon id calculated are the same everytime.

@The-pure-Groot
Copy link

The-pure-Groot commented Jun 6, 2024

I have same problem. Do you know how it works?

@laggykiller
Copy link

@star-39 I have written the solution in the comment above, you may take some inspiration from my code

Others may use http://github.com/laggykiller/sticker-convert while this problem is solved

@ReturnToFirst ReturnToFirst linked a pull request Jun 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants