For my websites I need links to searchresult pages where the querry is replaced with the word TEST. Like this:
[url removed, login to view]
I use this to search from one page by folowing these links and only replace the wordt TEST with the active querry.
I can create these link for almost every searchengine or page with one searchfield and that give resultpages the query(TEST) in their the url.
However, some pages don't give links with the word TEST in their url. In some cases this can be solved and in others it can't be solved but for a number of pages I have found a solution that needs an intermediate page.
Let's take the example of [url removed, login to view]
Unfortunately they have different fields for cities, countries and states and don't give clear url's with TEST in it. So I thought of this google "sitesearch" solution that works pretty good:
[url removed, login to view];sitesearch=[url removed, login to view]
The only problem is that if I search with it (e.g. TEST=shanghai) this opens a Google page with the desired link (and most of the time the only link) at the top of the searches. What I want is not to open the google results but to directly open that first link.
If I type "shanghai site:http://skyscraperpage.com/diagrams/" in google and hit "I feel lucky" (function that opens first result) it does open the first result perfectly but if I then recreate the link
[url removed, login to view];sitesearch=http://skyscraperpage.com/diagrams/&btnI=I%27m+Feeling+Lucky
it does not open the first (and only) result in [url removed, login to view]
I can't find a solution for this and I think google does not allow to open a "I feel lucky" link with sitesearch if the request did not originate from google itself.
I want to create a page that does the same thing. So, the page itself is not important but when I create a link like: [url removed, login to view];url=[url removed, login to view] it should redirect to the first google searchresult on "sometext" in the domain "example.com"
If the search does not return any results the url [url removed, login to view] should be opend.
On the mainpage I want to be able to create these links: So one field for querry that holds TEST by default end one field for site and one create link button.