make_links is a built in function

so of course make_links1 is not valid
In other words put the new stuff in with the old stuff because there is no point in reinventing the wheel.
I don't have the time to debug your code but basically do a for loop to find some stuff and then do whatever you need to with it. then do another for loop to find other stuff. and append it to the article list like i showed you. You can even take and rename title to temp1 after the first for loop if you like.