I wrote a script to find spelling mistakes in SO questions’ titles. I used it for about a month.This was working fine. But now, when I try to run it, I am getting this. Traceback (most recent call last): File ...
Home/urllib
Discy Latest Questions
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('http://www.livejournal.com/misc/fdata.bml?user='+name) ERROR: Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'urllib' is not defined
python 3.5.2 code 1 import urllib s = urllib.parse.quote('"') print(s) it gave this error: AttributeError: module ‘urllib’ has no attribute ‘parse’ code 2 from urllib.parse import quote # import urllib # s = urllib.parse.quote('"') s = quote('"') print(s) it works… code3 from flask import Flask # from urllib.parse import quote ...