I\'m using Python 3.1, if that helps.
Anyways, I\'m trying to get the contents of this webpage. I Googled for a little bit and tried different things, but they didn\
A solution with works with Python 2.X and Python 3.X:
try:
# For Python 3.0 and later
from urllib.request import urlopen
except ImportError:
# Fall back to Python 2's urllib2
from urllib2 import urlopen
url = 'http://hiscore.runescape.com/index_lite.ws?player=zezima'
response = urlopen(url)
data = str(response.read())