get data from url using urllib.request.urlopen