Regex that takes multiple url links!

Regex that takes multiple url links!

Let say I want to parse a list of links and return that in a dictionary format

I am following along with an online course and I want to create a solution that can validate multiple links or a list of links, so how I go about that?

import re

def url_validate(input):
    url_reg = re.compile(r'(https?)://(www\.[A-za-z-]{2,256}\.[a-z]{2,6})([-a-zA-Z0-9@:%_\+.~#?&//=]*)')
    match =
    if match:
        return dict(({
    return f"This is not url {input}"


This works fine with one link though 


{'Protocol': 'https',
 'Domain': '',
 'Remaining': '/watch?v=emHAoQGoQic&list=LLEvmU2o3RMbp4lpXdKgfCnw&index=5&t=0s'}

re.findall() for a list of matches.