0
What is wrong in this?
import urlparse link=str(input()) url_data = urlparse.urlparse(link) query = urlparse.parse_qs(url_data.query) video = query["v"][0] Why is this not working?
1 Answer
0
First of which version of python you are using?
The urlparse module is renamed to urllib.parse in Python 3.
Refer below code as example for the usage.
https://code.sololearn.com/c6bP67x9slHx/#py