An html file has no "output", it's just an html file. There are programs to convert an html file to a text file or a pdf file, you should google for that.
The content in the place of the word hello will be varying.
So, when I invoke the html file it would give me an exception or the word "OK"
So is there any script in python which would help me to invoke the html file read status of the file i.e either an exception or the status OK
and write into a file...
This find Hello in test12js.txt
Html dos not ever output anything as Gribouillis pointed out.
You parse html an find text like i did here.
You are better off learing more basic stuff about python and html.
I am sorry I am not able to put my question to you in a proper way
HTML 1:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Test JSON </TITLE>
<script language="JavaScript">
function checkJSON()
{
try
{
var v = eval(TextJSON.value);
var OK='OK'
document.write("OK");
If you invoke these two html files you will observe an exception in the first one and an OK message for the second one.
Please save these files and try.
So actually the content in the text area will be varying is what I said.
So I would like to know is there any script which would give me the exception if I call html1 and ok status if I call html2 and save to a text file the exception or the Ok respectively as called.
Hope now I am clear with what I want
Last edited by vamsicoolman; Feb 10th, 2010 at 5:15 am.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.