CODE:
import networkx as net from urllib.request import urlopen def read_lj_friends(g, name): # fetch the friend-list from LiveJournal response=urllib.urlopen(\'
You can also try in Python 3:
from six.moves import urllib temp_file, _ = urllib.request.urlretrieve(url)