accessing a web search engine

Tim Gahnström /Bladerman tim at bladerman.com
Thu Nov 1 02:33:00 CET 2001


Hi
I am guessing bigtimes here so dont take this as a fact. There might verry
well be a much easier solution but I see that the post have been out a while
and none have answered so I thought that you might be able to make, atleast,
a little bit of use of my humble opinion.

A javascript is normaly executed by a java-script executor, normaly that is
IE or netscape.

But maybe they use a standalone program or activeX control or something to
execute it than it should be possible for you to execute that program with
the javascript code right?

Maybe they use something internal, then your hope is that it might be a
python javascript module. I think there is a Html module so maybe there is a
java-script module.

Maybe you could see what the javascript on the webpage really do. Does it
just format the inqiery a little bit and then send it's message to a
CGI-program? if that is the case you can do the processing in your program
and then call the CGI.
In essense, rewrite the javascript in Python.

Gl, hope it helps

Tim Gahnström
----- Original Message -----
From: "Rajarshi Guha" <rxg218 at psu.edu>
Newsgroups: comp.lang.python
Sent: Thursday, November 01, 2001 12:57 AM
Subject: accessing a web search engine


> Hi,
>   I'm trying to use Python to send queries to a webpage and analyse the
> results. However the search engine does'nt use cgi scripts - it uses a
> Javascript function. How can I access a JScript function. I realize that
> this is not really a Python question, but since I am using it I thought
I'd
> ask here. I know that I have to use the urllib module but what string do I
> send to the server?
>
> TIA
> --
> -------------------------------------------------------------------
> Rajarshi Guha                  | email: rajarshi at presidency.com
> 152 Davey Laboratory           | web  : www.rajarshi.outputto.com
> Department of Chemistry        | ICQ  : 123242928
> Pennsylvania State University  | AIM  : LoverOfPanda
> -------------------------------------------------------------------
> GPG Fingerprint: DCCB 4D1A 5A8B 2F5A B5F6  1F9E CDC4 5574 9017 AF2A
> Public Key     : http://pgp.mit.edu/
> -------------------------------------------------------------------
> All syllogisms have three parts, therefore this is not a syllogism.
>





More information about the Python-list mailing list