Closed Tallefer closed 6 years ago
@teromene Thank you, works great! A small correction would be nice, though: Each feed item should have a title and a link leading to selected post, because currently there is no convenient way to get from any image to its corresponding post. In html mode all tags lead simply to the root of ello site, in atom mode tags lead to https://[CURRENT_BRIDGE_URL]/search?terms=#[TAG] which results in 404, obviously.
This should be fixed in c4d489f
Since you moved to CURL, I think it is more convenient now to request this bridge. The main reason — Ello's own notification system (sends digests to email) seems quite unreliable, sometimes it is silent for weeks, then several updates in one week, no matter how many posts were made in the meantime. And the closest thing to RSS is the homepage feed https://ello.co/feeds/editorials which works fine, but certainly it is not enough. Secondly, while happily storing them, Ello is not sharing artwork originals easily, and that is important, because of lossy compression. But API does provide a way to get them. So, I request user feeds at least, and search feeds as a bonus. Fortunately, since Ello is mainly an art-inspired site, most users that are worth a visit do not generate content more often than 1-2 times a day, so no need for frequent polls and heavy traffic. Some projects based on Ello API are found here on GitHub and in the wild. But to save time and make things more convenient, I will post an example here about how it could be done in console. Some useful links: https://gist.github.com/conatus/cc665f917d5558c123bc https://evdokimovn.github.io/elloapi/#introduction https://ellov2.docs.apiary.io/# https://github.com/ello/api-docs
1) Get the API token, it expires after 24 hours (not sure about that)
2) Use API to list a feed, it is more or less straightforward, so let's assume we have chosen a post already for processing.
3) User — eboy , post — aelk0rjs-rev-izrrjan6g , let's get us some json:
4) Now, we need only the originals, not the "optimized" or "xhdpi" which Ello normally shares, and they can be picked by their "original" tag, so:
results in https://assets2.ello.co/uploads/asset/attachment/7472627/ello-3cb4647b-0277-4ef1-8f67-9ea5ad08ac20.png
The End. :) Thank you for your project!