🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1231

Re: Is it possible to query the Google ...

#1231
From: Bill D. Pirkle
Date: Tue, 13 Sep 2005 04:16
30 lines
1964 bytes
Vladimir Stefanovic wrote:

> Hi,
> 
> Is it possible to make program with which I can pass the
> quoted STRING to the Google, and as a result to get the
> number of it's appearances (which is always shown after
> Googling...) ?

This page may help:  www.google.com/searchcode.html

It is not too hard to emulate the search form from within your program
using HTTP components.  I'm currently doing this with Indy in a cgi app
created with BCB6.  (My app is a the search tool for
massively-multiplayer online games:  http://search.tentonhammer.com)

I submit searches using Indy's HTTP component, and get back a Web page
as a string.  I then extract the desired data (in my case, extracting
the result links) and build a Web page that is displayed to the end
user.  You could parse the page returned by Google to pull out whatever
information you want.

Of course, you don't have to use Indy - you could use whatever HTTP
library that you prefer.

-- 
Bill D. Pirkle
www.worldchessnetwork.com - Where the world plays chess!
www.tentonhammer.com - EQ2, WoW, GuildWars, Middle-Earth Online, and
more!
Technical Details
Message-ID: <432652a5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4325ce68@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,aa86af003963b1a9
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bill D. Pirkle" <mbpirkle@getridofthis.att.net>
Subject: Re: Is it possible to query the Google ...
Newsgroups: borland.public.cppbuilder.internet.web
References:  <4325ce68@newsgroups.borland.com>
User-Agent: XanaNews/1.17.3.1
NNTP-Posting-Host: 65.40.214.152
Message-ID: <432652a5$1@newsgroups.borland.com>
Date: 12 Sep 2005 21:16:37 -0700
X-Trace: newsgroups.borland.com 1126584997 65.40.214.152 (12 Sep 2005 21:16:37 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail