📜 ⬆️ ⬇️

Filtering RSS feeds Habrahabr with Yahoo! Pipes

Hello, Dear Habrasoobschestvo.

The topic of filtering RSS feeds using Yahoo! Pipes has already been covered (for example, here ), but I would like to show a simpler and more accessible method for mere mortals.

So, literally a week ago, all posts on Habré were habrahabr.ru/blogs/ Blog_name / Post_Number . By the presence of the blog title in the body of the link, it was easy to clear the tape of uninteresting posts simply by filtering out unnecessary blogs by reference.

')
Now, after the spring update, links to posts now look like habrahabr.ru/post/ Post_number /. The post now may not be in one hub, but immediately in 3. Well, this is a very interesting approach, but our task is to learn how to filter uninteresting hubs.



One RSS record Habra feed contains such information as the title of the post, the author's nickname, date of publication and other data. We are interested in such a recording parameter as category . It is obtained by listing such components as hubs, to which the post belongs, and post labels: by this parameter we will just filter.


And why can't we filter by the description parameter? There is also a hub listing!
True, but in the description there is also part of the article. We are modeling this situation - I am a fierce opponent of Android, but at the same time, I put a filter on the word “Android” so that my eyes would not see the news about this OS. Well, now my tape has been cleared from mentioning this godless OSes, but now if there is an article that mentions why iOS is better than Android, I will not see it! Disorder!

That is why we will filter the category parameter in order to minimize the risk of missing an article that is useful / interesting to us as much as possible.

Actually the process of setting up the filter is simple to ugliness: we take out the filter and select the Block and any elements in the corresponding lists
Now we make the rule:
as a sorting parameter, enter item.category . Once we search in the body of the text, we select in the corresponding list Contains and in the empty field we enter the name of the hub, which we don’t want to see in the ribbon.
Examples of final rules: item.category Contains Android , item.category Contains High performance, etc. I think the meaning is clear

How it will all look like in Yahoo! Pipes


The first couple of days will have to sweat and make the rules for uninteresting hubs, but after the same couple of days you will notice that your tape has become much cleaner, it has become much more pleasant to read.

Why is all this necessary if, having registered on Habré, we can do all the same sorting by simply poking ticks?
Here, of course, a matter of taste. For example, it is more convenient for me to read tapes in Google Reader, so I went this way.
Also, I am interested in reading all new articles, and not only zahabrennye - this method is just convenient in this case, because at least registration allows you to read new posts with sorting, but posts published less than 24 hours ago are shown. You must admit that this approach requires a daily review of the New section, which is not very convenient. It is much more convenient when Google Reader saves you material and you will read it at your convenience.

I hope this article will be useful to someone. Thanks for attention

Source: https://habr.com/ru/post/140192/


All Articles