sebsauvage.net

Ce site n'est pas le site officiel.
C'est un blog automatisé qui réplique les articles automatiquement

rss-bridge - GitHub

Wednesday 7 August 2013 at 00:01

Bon, voilà la première pierre pour restaurer RSS sur les sites qui l'ont viré. En guise de premier exemple, rss-bridge-flickr-explore.php permet d'obtenir un flux ATOM des dernières photos intéressantes de Flickr (http://www.flickr.com/explore).
63 lignes écrites avec les pieds, et basé fortement sur le code de Mitsukarenai (http://root.suumitsu.eu/links/?Qihe4g). En gros ça va lire la page HTML et génère un flux ATOM.
C'est quand même la misère d'en arriver là.   ಠ_ಠ
Ce genre de code aurait probablement plus sa place dans Weboob (http://weboob.org/), mais comme ce dernier est en Python, je garde à côté.
J'ai carrément mis le code dans le domaine public.
Vous aurez besoin d'installer la lib http://simplehtmldom.sourceforge.net/

Et je cite mon README:
« Dear so-called "social" websites.

Your catchword is «share», but you don't want us to share. You want to keep us within your walled gardens. That's why you've been removing RSS links from webpages, hiding them deep on your website, or removed RSS entirely, replacing it with crippled or demented proprietary API. *FUCK YOU*.

You're not social when you hamper sharing by removing RSS. You're happy to have customers create content for your ecosystem, but you don't want this content out - a content you do not even own. Google Takeout is just a gimmick. We want our data to flow, we want RSS.

We want to share with friends, using open protocols: RSS, XMPP, whatever. Because no one wants to have *your* service with *your* applications using *your* API forced-feeded to them. Friends must be free to choose whatever software and service they want.

Get your shit together: Put RSS back in. »


TODO:
 - factoriser le code. - fait
 - ajouter d'autres exemples (DeviantArt Daily)
 - ajouter un système de cache. - fait
 - mieux documenter le tout. - fait

EDIT 7 août 2013: Ce soir j'ai comité une nouvelle version (code plus propre, plus clair, plus simple + système de cache + bridge Twitter et GoogleSearch).
(Permalink)

Source: https://github.com/sebsauvage/rss-bridge