@iamtakingiteasy how do I properly get a list of every emoji on eientei? I’d just scrape eientei.org/emoji/all with lynx but that’s slow and impolite
Conversation
Notices
-
menherahair (menherahair@eientei.org)'s status on Saturday, 18-Mar-2023 00:51:23 JST menherahair -
(mint@ryona.agency)'s status on Saturday, 18-Mar-2023 00:51:22 JST @menherahair @iamtakingiteasy https://eientei.org/api/v1/custom_emojis -
Yukkuri (iamtakingiteasy@eientei.org)'s status on Saturday, 18-Mar-2023 01:06:47 JST Yukkuri @menherahair HTML is generated by nginx xslt index, so it is low on resources, and there is no such thing as rudeness with public resources, you can do as many requests as rate limits permit, simple as. Parsing JSON however is often easier, at least outside of shellscripts, and some caching may imporve user experience too. Also interestingly endpoint @mint suggested is not returning identical format, including url and static_url at the same time, but those seem to be equal. likes this. -
menherahair (menherahair@eientei.org)'s status on Saturday, 18-Mar-2023 01:06:48 JST menherahair @iamtakingiteasy I am perfectly clueless about web stuff requesting html every time I open my editor just sounds rude
-
Yukkuri (iamtakingiteasy@eientei.org)'s status on Saturday, 18-Mar-2023 01:06:49 JST Yukkuri @menherahair Not sure how doing a simple grep with html is impolite, but json may be more convenient and you can probably use same endpoint FE uses for that: /api/pleroma/emoji.json
-