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

Add Satori API #13

Merged
merged 5 commits into from
Jul 4, 2023
Merged

Add Satori API #13

merged 5 commits into from
Jul 4, 2023

Conversation

thoiberg
Copy link
Owner

@thoiberg thoiberg commented Jul 3, 2023

Unfortunately Satori doesn't have a public API, but using a session token there is a "hidden" api that returns the data I want. This means that they'll probably change the API without warning, but I think this solution is still more reliable than scraping the HTML.

The cookies have a max expiration set to 2038, so I shouldn't have to update the cookie for quite a while (assuming that it doesn't get destroyed if I log out).

TODO

Unfortunately Satori doesn't have a public API, but using a session
token there is a "hidden" api that returns the data I want.

This means that they'll probably change the API without warning, but I
think this solution is still more reliable than scraping the HTML.

The cookies have a Max expiration set to 2038, so I shouldn't have to
update the cookie for quite a while (assuming that it doesn't get
destroyed if I log out).
Without using join! or try_join! it will execute the requests
synchronously, rather than firing both of them off at the same time and
waiting for the responses.
@thoiberg thoiberg changed the title Add Satori requests Add Satori API Jul 4, 2023
@thoiberg thoiberg merged commit 13c6ee5 into main Jul 4, 2023
@thoiberg thoiberg deleted the add-satori branch July 4, 2023 14:45
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 this pull request may close these issues.

1 participant