Turn off streaming quotes in Yahoo Finance

150 vistas
Ir al primer mensaje no leído

rv...@comcast.net

no leída,
15 abr 2008, 1:30:54 a.m.15/4/08
para Watir General
I am trying to screen scrape Yahoo Finance for stock market data. I
am using Ruby Watir and IE. Yahoo Finance has a button labeled
'Streaming Quotes' with an 'ON' 'OFF' image that you click on to turn
streaming quotes on and off.

The problem is that Ruby is not able to fully load the page and
continue unless Streaming Quotes is turned OFF. I click manually on
'OFF' but Streaming Quotes will only stay 'OFF' for a few minutes
before defaulting back to 'ON'.

I have tried a bunch of things to try to identify the OFF/ON state and
turn streaming quotes OFF, but I can't get it to work.

Any suggestions? The two things I need to do are to (1) identify if
Streaming Quotes are ON, and (2) Turn Streaming Quotes OFF if it is
ON.

An example link is: http://finance.yahoo.com/q?s=GOOG

Thank you,
Robert
Albuquerque, NM

Željko Filipin

no leída,
15 abr 2008, 8:53:08 a.m.15/4/08
para watir-...@googlegroups.com
On Tue, Apr 15, 2008 at 7:30 AM, <rv...@comcast.net> wrote:
> I have tried a bunch of things to try to identify the OFF/ON state and
> turn streaming quotes OFF, but I can't get it to work.

Hi Robert,

Try this:

ie.link(:class, "on").click if ie.link(:class, "on").exists?

Željko
--
ZeljkoFilipin.com

rv...@comcast.net

no leída,
15 abr 2008, 5:01:19 p.m.15/4/08
para Watir General
THANK YOU!!! That worked perfectly!!!!

Robert

On Apr 14, 11:30 pm, rv...@comcast.net wrote:
> I am trying to screen scrape Yahoo Finance for stock market data.  I
> am using Ruby Watir and IE.  Yahoo Finance has a button labeled
> 'StreamingQuotes' with an 'ON' 'OFF' image that you click on to turnstreamingquotes on and off.
>
> The problem is that Ruby is not able to fully load the page and
> continue unlessStreamingQuotes is turned OFF.  I click manually on
> 'OFF' butStreamingQuotes will only stay 'OFF' for a few minutes
> before defaulting back to 'ON'.
>
> I have tried a bunch of things to try to identify the OFF/ON state and
> turnstreamingquotes OFF, but I can't get it to work.
>
> Any suggestions?  The two things I need to do are to (1) identify ifStreamingQuotes are ON, and (2) TurnStreamingQuotes OFF if it is

Max

no leída,
7 may 2008, 3:43:13 p.m.7/5/08
para Watir General
Hello,

How does one use the information you provided?

I would like to eliminate the entire object, if possible. I hate it.

Thank you,
Max

Željko Filipin

no leída,
8 may 2008, 6:40:07 a.m.8/5/08
para watir-...@googlegroups.com
On Wed, May 7, 2008 at 9:43 PM, Max <franki...@gmail.com> wrote:
> How does one use the information you provided?
> I would like to eliminate the entire object, if possible. I hate it.

I do not understand.

Željko

Max

no leída,
8 may 2008, 12:59:17 p.m.8/5/08
para Watir General
I believe you provided some Java script in your April 15th post above.
How would I use the Java script to eliminate the object from my
browser display? I have both IE and Mozilla.

Thanks,
Frankie

On May 8, 6:40 am, "Željko Filipin" <zeljko.fili...@gmail.com> wrote:

Željko Filipin

no leída,
8 may 2008, 1:04:49 p.m.8/5/08
para watir-...@googlegroups.com
On Thu, May 8, 2008 at 6:59 PM, Max <franki...@gmail.com> wrote:
> I believe you provided some Java script in your April 15th post above.
> How would I use the Java script to eliminate the object from my
> browser display?

No, it is Watir code (this is Watir group). The code will click a link if the link exists.

Željko

Max

no leída,
12 may 2008, 12:25:45 p.m.12/5/08
para Watir General
I suppose that I should research your lingo before asking questions. I
shall begin with the meaning of "Watir code."

My intension was to find a way to permanently disable the Java script
that controls the streaming quotes on Yahoo! Finance. I am tired of
waiting for it to initialize each time I refresh the page. In my
opinion, it is a poorly designed object and should be removed by
Yahoo!.

Thanks,
Frankie

On May 8, 1:04 pm, "Željko Filipin" <zeljko.fili...@gmail.com> wrote:

Jeff Fry

no leída,
12 may 2008, 1:27:22 p.m.12/5/08
para watir-...@googlegroups.com
Frankie, you're asking questions on a forum for automated web testing using the ruby library called watir. http://wtr.rubyforge.org/

If you're trying to do something else, you'll probably have better luck elsewhere. (I haven't done much with greasemonkey, but if you're trying to modify the application within the browser, that might be the place to look.)

Jeff
--
http://testingjeff.wordpress.com
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos