I'm trying to read dynamically generated data from a website (it's being generated by javascript linked to server-side code, so i can't read the data from the html file returned by urllib).

Is there a way to do this in python? Would using firefox macros be easier?

Thanks for any help.

There are modules for python that allow you to execute javascript, but this might be messy. You could fetch the Jscript with urllib, run the javascript and fetch whatever is returned. Browser macros would be easier, but if you want to distribute this program then i wouldn't recommend macros.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.