The basic idea for this program is to for me to enter a code to a corresponding website (which is already in a dictionary in the body of the program) and search that webpage for a specific phrase and return a value. This is so that I can check number online constantly with little effort.
However, all of the sample programs online do no work for the website I am trying. Some of the times it works for only google.
1.
from urllib import urlopen
print urlopen('url').read()
2.
import shutil
import os
import time
import datetime
import math
import urllib
from array import array
filehandle = urllib.urlopen(url)
for lines in filehandle.readlines():
print lines
filehandle.close()
3. webbrowser function
Whenver I use one of the above codes it returns the following:
The web browser you are using is not supported by this site.
Please download one of the following supported browsers.
<BR>
<BR>
<a href="http://www.microsoft.com/ie/download">http://www.microsoft.com/ie/download</a>
<BR>
<BR>
<a href="http://www.netscape.com/download">http://www.netscape.com/download</a>
<BR>
I have tried setting Internet Explorer as my default web browser and I received the same message. I am running Windows 7 x64 and appreciate any suggestions or ideas on other ways to accomplish my goal.