Posts filed under 'Uncategorized'

Serchilo on your console

We’ve implemented a little new interface for all console lovers. By calling Serchilo with action=url, for instance:

http://serchilo.net/?action=url&query=g+berlin

you will not be redirected to the target site but will just get its URL:

http://www.google.com/search?hl=en&q=berlin&ie=utf-8

This can be very useful if you have a shell script on your system calling Serchilo with your query, getting the url, downloading the target page and filtering it through html2text.

If this script is called “s” and is located in a directory of $PATH and you’ve installed html2text you can do this:

$ s dbt berlin, hamburg | html2text
===============================================================================
****** Fahrplanauskunft ?bersicht ******

                                                  [frühere Verbindungen]
 +-------------------------+---------------------+----+--------+--------+
 |     Bahnhof ab          | Bahnhof an          | Um |   Ab   |   An   |
 +-------------------------+---------------------+----+--------+--------+
 |  1. Berlin Hbf (tief)   | Hamburg Hbf         |  0 |  05:18 |  07:07 |
 |  2. Berlin Hbf (tief)   | Hamburg Hbf         |  0 |  05:58 |  07:46 |
 |  3. Berlin Hbf (tief)   | Hamburg Hbf         |  0 |  07:18 |  08:57 |
 +-------------------------+---------------------+----+--------+--------+
                                                  [spätere Verbindungen]
  Anzeigeformen
      [Detail]
      [Reisebegleiter]

  Verweise
      Neue Anfrage
      Zur Hauptseite der Deutschen Bahn AG
===============================================================================
Software/Datenstand: HAFAS 5.23.DB.R5.50.c - 15.09.08
Alle Angaben ohne Gew?hr, bei Gleisangaben beachten Sie bitte die ?rtlichen
Hinweise. Hier erreichen Sie uns bei Problemen.

Here’s the script, enjoy!

#!/bin/sh
SERCHILOQUERY="http://serchilo.net/?action=url&query=$@"
URL=`wget -qO - "$SERCHILOQUERY"`
if [ -n "$URL" ]
then
	wget -U "Firefox" -qO - "$URL"
fi

2 comments September 15, 2008

New: Paid commands

In order to refund some of our server costs we have introduced paid commands.

For example we have registered Serchilo as a partner at Amazon.de and added our partner ID to the Amazon.de command’s target URL. Now if you are using the Amazon command, Amazon will know that you came from Serchilo and will pay us 5% of your purchase.

All paid commands are listed on Category:Paid.

2 comments June 30, 2008


Pages

Archives

a

Recent Comments

Stefan on New: Default keyword
dagobart on Serchilo on your console
R. Kneschke on New: Default keyword
serchilo on New: Paid commands
noname on New: Paid commands