i have to basically make a program that take a user-input web address and parses html to find links . then stores all the links in another HTML file in a certain format. i only have access to builtin python modules (python 3) . im able to get the HTML code from the link using urllib.request and put that into a string. how would i actually go about extracting links from this string and putting them into a string array? also would it be possible to identify links (such as an image link / mp3 link) so i can put them into different arrays (then i could catagorize them when im creating the output file)
try to use HTML.Parser library or re library
they will help you to do that 
and i think you can use regex to do it 

r'http[s]?://[^\s<>"]+|www.[^\s<>"]+
Extracting links from HTML in Python