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(\'
Just put import urllib at the top of your code
import urllib