[Solved]AttributeError: module ‘urllib’ has no attribute ‘quote’

AttributeError: module’urllib’ has no attribute’quote’ solution.
In crawling Google pictures, the program reported an error. Due to the different versions of python, the problem of AttributeError: module’urllib’ has no attribute’quote’ appeared
as long as the quote Just add parse before

url_init = url_init_first + urllib.quote(keyword, safe='/')
url_init = url_init_first + urllib.parse.quote(keyword, safe='/')


Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *