When I was scraping with Python, I got NameError: name'urlparse' is not defined
, so make a note of the solution.
It looks like you're getting this error because you don't have a module to use the urlparse method. https://stackoverflow.com/questions/58347029/fail-nameerror-name-urlparse-is-not-defined
Install the module to use ʻurlparse`
$ pip install urlparse3
(Click here for Python2)
$ pip install urlparse2
reference https://www.it-swarm.dev/ja/python/python%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%ABurlparse%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93/961197002/ https://qiita.com/__xxx/items/577b494e1725e5173be5
Recommended Posts