📜 ⬆️ ⬇️

Pipe Child: How to combine web services into new tools

A distinctive feature of many web applications is that they, practically complying with the canons of the UNIX-way, perfectly perform one function, only sometimes assuming some limited interaction. But in order for the analogy to be complete, there is not enough of the main element - an analogue of the pipes, which would allow to link services to each other to obtain a new functional. We selected the tools that perfectly solve this problem - various mash-ups and automators capable of connecting disparate products into a single working environment.




')

Yahoo Pipes





The first in our list are the “pipes” - a free service, which can rightly be called the “grandfather” of the mashup genre. The main idea is the processing of text streams by cascading hanging various filters, aggregators and handlers. It is felt that the developers were inspired by the good old Unix pipeline. The user is invited to use the base of existing pipes or create your own. In fact, each pipe is a small program that is written or, rather, drawn in a special editor.
At the heart of pipes are several basic concepts:

  1. Data source (everything revolves around the RSS format, that is, it is the RSS feed itself, search results or a request in a special language YQL).
  2. User input - data that can be entered in special fields of the pipe to change the logic of its work. For example, a nickname on Twitter or a search query.
  3. Handlers are many different functions that, at the input, receive data from user input or a source, do something with it and return the result of their work. By the way, even another pipe can be used as a handler.


It is also worth noting that the result of executing the pipe can be obtained in various formats when requesting a special address of the form: pipes.yahoo.com/pipes/pipe.run?_id=PIPE_ID&_render=json , which makes it possible to use it in your scripts or on the website page.
All this, on the one hand, makes the pipe quite a flexible tool for data processing, on the other - adds some difficulty in writing its "scripts". By the way, the site also has a bunch of ready-made and working pipes for various occasions. For example:



IFTTT





If This Then That is a real favorite of the public, one of the most popular services of this kind. It offers a slightly different approach to data processing than Yahoo Pipes, based on the idea of ​​web hooks. IFTTT interacts with a variety of APIs of various services, allowing you to create recipes — mini-scripts of a specific format. The recipe consists of a trigger — a condition on which data is processed (a new file in the dropbox, a new tweet, a new photo on instagram), and an action that is performed when a trigger is triggered (write a letter, change the status on Facebook). The data is updated periodically, once every 15 minutes, so there is no particular delay in responding to triggers (by the way, some triggers work as soon as a certain event occurs - they are called “lightning-fast” in IFTTT). It is worth noting that, despite the simplicity of the idea, IFTTT is quite a powerful service that allows you to customize the synchronization and automation of various services. When creating a recipe, there is still such a thing as ingredients - in fact, the execution context of a trigger, in which there are variable values, such as tweet text or subject line. They can and should be used in actions (if, of course, they receive some input data). I also note that the service looks very nice and has a rather large base of ready-made recipes (you can also share your own). Of those that I use: a reminder of the weather on the mail, as well as automatic loading of your favorite photos on the dropbox.

The following recipes also seemed interesting to me:



Zapier





Zapier appeared later IFTTT, but the logic of the work here is completely the same: there are recipes (only here they are called zapy), events and actions. There is a base of ready zapov and the ability to create your own. In fact, both mash-ups are very similar, and all their differences result from the difference in approach: if IFTTT is a service for automating your social life, which should simply make life easier, then Zapier is a business tool that can solve completely operational issues ( for this, services include Redmine, Zendesk, Asana, Shopify and PayPal). The main killer feature of the locker is the number of services. If there are about 60 of them in the IFTTT, then there are about 250 of them. The creators, it seems, have set their sights on connecting everything that is possible - and that's great. The main disadvantage (of course, for users) is a paid service. Of course, there is a free plan, so that you can try the service, but its capabilities are completely incomparable with the free features of IFTTT. Prices, by the way, are also not symbolic - the minimum subscription costs $ 15 per month, so it seems to me that the expediency of using a locker rests on whether the price pays off to you personally. And if, for example, he saves a lot of time for a freelancer, freeing him from an unpleasant routine, then why not? Examples of working actions:



Google alerts





And this is a service from the search giant. It is based on the idea of ​​monitoring the results of a search query over time. In fact, you can set up "alerts" on the appearance of new results on request. In fact, what could be more logical and more correct - after all, the Google database is updated faster and faster. They are able to filter garbage and select the most relevant data.

In the list of alert options:



What can be monitored this way? I think everyone has his own. Someone can monitor discounts on goods or services, someone - news about the fall of meteorites. And you can drive your name and nickname and get new mentions on the Internet. By the way, another use case would be to track news about new vulnerabilities of a certain product, for example: “Rails Vulnerability” - for notifications about new security problems of the framework.

So, as useful yuzkeys:



Wappwolf





Mashup service for working with files. It is similar in idea to IFTTT, but with a bias towards file processing. The only event here is adding a file to the cloud storage folder (Dropbox, Google Drive, SkyDrive, Box are supported), but there can be quite a lot of action here:



In principle, it is convenient if you need to configure some kind of automatic file processing (for example, new screenshots), while other services cannot offer anything for this.



on {x}





Despite the fact that today we considered only web applications, I decided to add this interesting project from Microsoft. on {X} is an application for android, which allows you to do approximately the same as the services described above, to perform an action when a certain condition occurs. Of the interesting features:



The project is rather experimental, but this did not prevent him from gaining a community of enthusiasts. Of course, in the best traditions of such services, there is an opportunity to create new recipes, exchange them and install (having considered a special QR code by phone).

Since, unlike previous projects, the phone API is used here, and the recipes are written in this programming language, the developer has additional freedom for creativity. Of the most interesting rules we can mention:



Author: Mikhail Elovskikh .


First published in the magazine "Hacker" from 07/2013.

Publication on Issuu.com

Subscribe to "Hacker"




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


All Articles