def fetch_requirements(requirements_file_path):
    """
    Return a list of requirements and links by parsing the provided requirements file.
    """
    links = []
    reqs = []
    for req in parse_requirements(requirements_file_path, session=False):
        # Note: req.url was used before 9.0.0 and req.link is used in all the recent versions
        link = getattr(req, "link", getattr(req, "url", None))
        if link:
            links.append(str(link))
        reqs.append(str(req.req))
    return (reqs, links)

    Return a list of requirements and links by parsing the provided requirements file.
    
scripts/dist_utils_old.py