Hello dear users.
I want to bring to your attention a small online utility that is designed for more convenient work with Habrahabr's RSS feeds.
Why do you need it:
The fact is that after Habr's reform, from the profile settings, such options as: “Slip topics from thematic blogs into the ribbon”, “Slip topics from the ribbon into the ribbon” disappeared, as a result I had to subscribe to 3 channels at once. (
I already wrote about this in more detail: http://kapustos.habrahabr.ru/blog/45249/ ). It was not possible to solve the problem using
Yahoo Pipes and I wrote a small application for myself that solved my problems. I wanted to boast in front of the community, and after polishing and adding multi-user functionality, the
HabroRSS Filter appeared.
What he can do and how useful it is:
- Make one of several Habr feeds, while removing duplicates and sorting the list by date.
For the experiment, I subscribed to 2 feeds: Personal and Home in the RSS reader, and on them in the Filter. After 7 days around the year, in the RSS reader 156 news, in Filter 126.
')
- Remove from the feed news that is written in a particular blog.
I remember how the authors Habr offered to add the option "Get all the posts, except for the blog xxx". This can be configured in the Filter. By the way, I think this may be useful for Habr's readers who do not have an account on the site, respectively, they are not available personal RSS feed. With the help of this option they will be able to receive less unnecessary / uninteresting news.
- Remove news from a feed that was written by a specific author.
You can't stand someone on Habré? His posts cause you anger and aggression? Add his nickname to the ignore list and your RSS feed will not be defiled.
- Crop news that is more than a certain length.
If you belong to those users who first write Habrakat, then the next opportunity is for you: determine the maximum length of messages that fall into your tape — longer messages will be cut off.
Example:
I subscribed to RSS at Home, Thematic Blogs and Personal Feed. I added Podcasts to the list of ignored blogs (I don’t perceive it by ear), Design and several thematic blogs devoted to technologies that are not interesting to me at the moment. I do not ignore the authors.
Technical part:
PHP server side. For parsing RSS feeds of Habrahabr I used a wonderful library:
SimplePie (if there is interest, I could write a survey topic) .
On the client side, jQuery and some AJAX.
The generated RSS-XML is identical to Habrahabrovsky, except that the title was changed, and in order to pass the validation (Habrahabrovsky xml did not pass it), we had to change the element to <dc: creator> </ dc: creator>.
To get a personal feed, you need Habrahabr RSS ID, I think that it does not provide secret information, if I'm wrong, please write.
I decided that authorization by type: “login: password” is too much, so users are authorized using a unique URL, which is issued when saving settings.
For habroadministration:
I hope by creating such a service I do not break the rules of Habrahabr. I read the “About Bots” memo and set the corresponding User-Agent. Also included is caching an RSS request for a unique GET sent no more than once every 5 minutes. I’m not going to get any benefit from the service and I promise not to insert advertising.
If the “Filter” still breaks something, please let me know and I
will delete it.
I will be glad to your suggestions, error messages and criticism.
PS: I tried so hard when writing a post that I forgot to specify a link, here it is:
HabroRSS FilterUPD: I thought this, because 'I Habrahabr' is a closed blog - unregistered readers will not see the topic about the Filter in general, and he would have been very useful to them. Can it be moved to some open blog for 1-2 evenings and then returned back?