You are given a list of urls. You need to extract the domain name from the
urls in another list. Also you need to extract the ending string which the
url ends with.
For example, ‘https://www.example.com/market.php’ -- In this example, domain
name is ‘www.example.com’ and the ending string is ‘php’
url_list = ['https://blog.hubspot.com/marketing/parts-url',
'https://www.almabetter.com/enrollments',
'https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rename.html',
'https://www.programiz.com/python-programming/list']
Next create a pandas dataframe with the above three lists.
Comments
Leave a comment