hello<div>I wrote a function to fetch data using urllib and displaying the data</div><div>using internet Explorer.</div><div>it is not preparing the html file</div><div>So opening blank Explorer after complaining th html file not found.</div>
<div>Where is the problem?</div><div>Can I display the data read from a site without preparing </div><div>a html file?</div><div><br></div><div><code></div><div><br></div><div><div>def pp():</div><div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>import urllib</div>
<div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>import subprocess</div><div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>so=urllib.urlopen('<a href="http://www.asstr.org">http://www.asstr.org</a>')</div>
<div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>data=so.read()</div><div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>de=open('C:pp.html','w')</div><div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>de.write(data)</div>
<div>@@@<span class="Apple-tab-span" style="white-space:pre">        </span>subprocess.Popen(['C:\Program Files\Internet xplorer\\IEXPLORE','C:pp.html'])</div><div><br></div><div><br></div><div></CODE></div>
<div><br></div><div><br></div><div>prasad</div></div>