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?

26th Jan 2020, 2:52 PM
B.D
B.D - avatar
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
6th May 2020, 3:59 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar