473,413 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

is there a python object which can interpret java-script?

Hi,

my short question:

is there a python object which can interpret java-script?

the whole story ;-)

I wrote some streaming-scripts for the xbox mediaplayer which supports
python. for a new script i tried to filter the stream-url from an
website. it seems, that the site ist using java-script and the url is
only visible if the java-script was interpreted. i am using urllib to
retrieve the page.. but it seems that urllib is not ready for
java-script...

the site:
http://www.prosieben.de/show_comedy/..._video/07029//

the url i need:
http://redirect.streaming.szm.de/red...ttenladen.wmv&
i hoper someone has an idea...

cya
Alex
Jul 19 '05 #1
3 2350
Alexander Fillips wrote:
Hi,

my short question:

is there a python object which can interpret java-script?

the whole story ;-)


google("python javascript")

First link is a Python binding to the SpiderMonkey JavaScript
interpreter from the Mozilla project. It's unmaintained, and I've never
tested it, but it's worth a try.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 19 '05 #2
The Great 'Alexander Fillips' uttered these words on 5/9/2005 7:34 AM:
Hi,

my short question:

is there a python object which can interpret java-script?

the whole story ;-)

I wrote some streaming-scripts for the xbox mediaplayer which supports
python. for a new script i tried to filter the stream-url from an
website. it seems, that the site ist using java-script and the url is
only visible if the java-script was interpreted. i am using urllib to
retrieve the page.. but it seems that urllib is not ready for
java-script...


http://wwwsearch.sourceforge.net/python-spidermonkey/ is a
Python-Javascript bridge.

To do what you are trying, you will have to execute the Javascript in
that web page in the context of the page you are downloading...I am not
quite sure how you will go about doing that without re-inventing what a
Javascript-enabled browser does.

Knowing nothing about the Xbox environment, here is a suggestion that I
feel will make your task easier. Can you not use javascript-enabled
links text browser to access the page and capture the output HTML source
from links into Python? (Or if you can use win32all, you can automate IE
to view source and process that source in Python to get your URL)

Thanks,
-Kartic
Jul 19 '05 #3
Kartic wrote:
The Great 'Alexander Fillips' uttered these words on 5/9/2005 7:34 AM:
Hi,

my short question:

is there a python object which can interpret java-script?

the whole story ;-)

I wrote some streaming-scripts for the xbox mediaplayer which supports
python. for a new script i tried to filter the stream-url from an
website. it seems, that the site ist using java-script and the url is
only visible if the java-script was interpreted. i am using urllib to
retrieve the page.. but it seems that urllib is not ready for
java-script...

http://wwwsearch.sourceforge.net/python-spidermonkey/ is a
Python-Javascript bridge.

To do what you are trying, you will have to execute the Javascript in
that web page in the context of the page you are downloading...I am not
quite sure how you will go about doing that without re-inventing what a
Javascript-enabled browser does.

Knowing nothing about the Xbox environment, here is a suggestion that I
feel will make your task easier. Can you not use javascript-enabled
links text browser to access the page and capture the output HTML source
from links into Python? (Or if you can use win32all, you can automate IE
to view source and process that source in Python to get your URL)


if the xbox media player is active there is only support for python. it
is possible to run linux on the xbox, but not at the same time as xbmc
is active. i found a browser for the xbox (linksboks) but here still the
same problem. thank for your tips...

Alex
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully....
13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
0
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format,...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
4
by: fortepianissimo | last post by:
Is there a solution to enable Java programmers to call functions written in Python? Any wrapper generator that wraps Python code into some Java-callable form? I briefly looked at Jython, but if...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
53
by: Vicent Giner | last post by:
Hello. I am new to Python. It seems a very interesting language to me. Its simplicity is very attractive. However, it is usually said that Python is not a compiled but interpreted programming...
0
by: Robert Kern | last post by:
Ognjen Bezanov wrote: Mostly. It is worth noting, though, that the Python bytecode is at a higher level than Java bytecode. You can run other languages on top of the JVM using Java bytecode...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.