PDA

View Full Version : How to Read an ASP Page



Ubuntist
June 20th, 2006, 01:10 PM
A week or so ago, this forum gave me some very helpful tips on how to get started writing code to read HTML pages. Now here's related question: how would I get started writing code (e.g., Python) to read particular items of data from a page which is basically a big JavaScript (the URL ends in ".asp" and there is a "<script language JavaScript>" directive followed by an HTML comment containing what I presume is JavaScript (I don't know JavaScript, but I can certainly read the code on this page).

Since the JavaScript is contained within an HTML comment, I could just get the comment and then write code to deconstruct the JavaScript. But I would guess there must be an easier way. Could I, for example, get the JavaScript and then run one of the functions defined within it?