I try to write blogs whenever I get spare time

Just to let you know what I am trying to learn and what I am doing now.

Showing posts with label yahoo. Show all posts
Showing posts with label yahoo. Show all posts

Using the Union operator in Yahoo Pipes to combine your search results

If you have already read my previous blog, then I am assuming you can create a basic pipe. I'll show you now, how to use different search modules and combine their search results into one unified output result.
We'll search in Google and in Yahoo against a keyword and images for the same keyword would be fetched from Flickr. Outputs of these three search would be combined finally.
Follow the procedure:

  • Go to Yahoo! Pipes.
  • Sign in with your yahoo account.
  • Choose “Create a pipe”.
  • After the pipe editor has loaded, drag “Google Base ” to the editor panel from the “Sources” category of the left pane.
  • Drag "Yahoo Search" to the editor pane.
  • Drag "Flickr" to the editor pane.
  • Drag "Text input" from the "User inputs" category.
  • Edit fields of the “Text input” module as necessery: write “Search For” in the prompt field.
  • Write 1 in the position field.
  • Write “Einstein” in Default and Debug field.
  • Connect this “Text Input” module with
  1. the text field after the "with keywords" in the Google module
  2. the text field after the "search for" in the Yahoo module
  3. the text field “image for” in the Flickr module.
  • Now drag “Union ” from the “Operators” category.
  • Connect the outputs of Google, Yahoo and Flickr module with 3 input slots of the union module.
  • Finally connect the output of the Union module with the "Pipe Output".
  • Save the pipe.
And your pipe is created successfully. Now watch the output in the Debug pane or run it. You'll get the aggregated or unified output.

Getting started with Yahoo! Pipes.

I was overlooking any new Yahoo products as their existing other products gave me only a feeling of disgust. I heard about their new product " Yahoo! Pipes". I thought it would be another typical yahoo product. But one day, out of my own curiousity, I logged into pipes. And what I found afterward made me completely astonished. It is an amazing product. According to them:

"Pipes is a powerful composition tool to aggregate, manipulate, and mashup content from around the web."

I am going to show you a step by step introductory view of pipes. I'll give a tutorial of how images can be fetched from Flickr according to your parameters.

  • Go to Yahoo! Pipes.
  • Sign in with your yahoo account.
  • Choose "Create a pipe".
  • After the pipe editor has loaded, drag "Flickr " to the editor panel from the "Sources" category of the left pane.
  • Drag "Text input" to the editor pane from the "User inputs" category.
  • Edit fields of the "Text input" module as necessery: write "Search For" in the prompt field.
  • Write 1 in the position field.
  • Write "Sunset" in the Default field.
  • Connect this "Text Input" module with the text field "image for" in the Flickr module.
  • Drag "Location Input" to the editor pane from the "User inputs" category.
  • Edit fields of the "Location input" module as necessery: write "Location" in the prompt field.
  • Write 2 in the position field.
  • Write "Bangladesh" in the Default field.
  • Connect this "Location Input" module with the field "near" in the Flickr module.
  • Drag "Number Input" to the editor pane from the "User inputs" category.
  • Edit fields of the "Number input" module as necessery: write "Number of pics" in the prompt field.
  • Write 3 in the position field.
  • Write "10" in the Default field.
  • Connect this "Number Input" module with the text field after the "Find" in the Flickr module.
  • Finally connect the "Pipe Output" with the output connector of the "Flickr" module.