Re: Executing Javascript, then reading value

2007-01-31 Thread skip
Melih In fact what you're describing is exactly what I needed. I ended Melih up finding a way to execute the javascript using Rhino and then Melih capturing the result. Not exactly what I wanted to do, but once I Melih found it out, it works. There is an embeddable C

Re: Executing Javascript, then reading value

2007-01-30 Thread Diez B. Roggisch
Melih Onvural schrieb: I need to execute some javascript and then read the value as part of a program that I am writing. I am currently doing something like this: import htmllib, urllib, formatter class myparser(htmllib.HTMLParser): insave = 0 def start_div(self, attrs):

Re: Executing Javascript, then reading value

2007-01-30 Thread bearophileHUGS
Jean-Paul Calderone: You might look into the stand-alone Spidermonkey runtime. However, it lacks the DOM APIs, so it may not be able to run the JavaScript you are interested in running. There are a couple other JavaScript runtimes available, at least. This may be okay too:

Re: Executing Javascript, then reading value

2007-01-30 Thread John Nagle
Melih Onvural wrote: Thanks, let me check out this route, and then I'll post the results. Melih Onvural On Jan 29, 4:04 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 29 Jan 2007 12:44:07 -0800, Melih Onvural [EMAIL PROTECTED] wrote: I need to execute some javascript and then

Re: Executing Javascript, then reading value

2007-01-30 Thread Melih Onvural
In fact what you're describing is exactly what I needed. I ended up finding a way to execute the javascript using Rhino and then capturing the result. Not exactly what I wanted to do, but once I found it out, it works. Melih Onvural On Jan 30, 2:57 pm, John Nagle [EMAIL PROTECTED] wrote: Melih

Executing Javascript, then reading value

2007-01-29 Thread Melih Onvural
I need to execute some javascript and then read the value as part of a program that I am writing. I am currently doing something like this: import htmllib, urllib, formatter class myparser(htmllib.HTMLParser): insave = 0 def start_div(self, attrs): for i in

Re: Executing Javascript, then reading value

2007-01-29 Thread Jean-Paul Calderone
On 29 Jan 2007 12:44:07 -0800, Melih Onvural [EMAIL PROTECTED] wrote: I need to execute some javascript and then read the value as part of a program that I am writing. I am currently doing something like this: Python doesn't include a JavaScript runtime. You might look into the stand-alone

Re: Executing Javascript, then reading value

2007-01-29 Thread Melih Onvural
Thanks, let me check out this route, and then I'll post the results. Melih Onvural On Jan 29, 4:04 pm, Jean-Paul Calderone [EMAIL PROTECTED] wrote: On 29 Jan 2007 12:44:07 -0800, Melih Onvural [EMAIL PROTECTED] wrote: I need to execute some javascript and then read the value as part of a