def collect_links(self, project_name):
    'Find all available links for the given project name.\n\n        :return: All the Link objects (unfiltered), as a CollectedLinks object.\n        '
    search_scope = self.search_scope
    index_locations = search_scope.get_index_urls_locations(project_name)
    (index_file_loc, index_url_loc) = group_locations(index_locations)
    (fl_file_loc, fl_url_loc) = group_locations(self.find_links, expand_dir=True)
    file_links = [Link(url) for url in itertools.chain(index_file_loc, fl_file_loc)]
    find_link_links = [Link(url, '-f') for url in self.find_links]
    url_locations = [link for link in itertools.chain((Link(url, cache_link_parsing=False) for url in index_url_loc), (Link(url) for url in fl_url_loc)) if self.session.is_secure_origin(link)]
    url_locations = _remove_duplicate_links(url_locations)
    lines = ['{} location(s) to search for versions of {}:'.format(len(url_locations), project_name)]
    for link in url_locations:
        lines.append('* {}'.format(link))
    logger.debug('\n'.join(lines))
    return CollectedLinks(files=file_links, find_links=find_link_links, project_urls=url_locations)
Find all available links for the given project name.

:return: All the Link objects (unfiltered), as a CollectedLinks object.
def collect_links(self, project_name):
    'Find all available links for the given project name.\n\n        :return: All the Link objects (unfiltered), as a CollectedLinks object.\n        '
    search_scope = self.search_scope
    index_locations = search_scope.get_index_urls_locations(project_name)
    (index_file_loc, index_url_loc) = group_locations(index_locations)
    (fl_file_loc, fl_url_loc) = group_locations(self.find_links, expand_dir=True)
    file_links = [Link(url) for url in itertools.chain(index_file_loc, fl_file_loc)]
    find_link_links = [Link(url, '-f') for url in self.find_links]
    url_locations = [link for link in itertools.chain((Link(url, cache_link_parsing=False) for url in index_url_loc), (Link(url) for url in fl_url_loc)) if self.session.is_secure_origin(link)]
    url_locations = _remove_duplicate_links(url_locations)
    lines = ['{} location(s) to search for versions of {}:'.format(len(url_locations), project_name)]
    for link in url_locations:
        lines.append('* {}'.format(link))
    logger.debug('\n'.join(lines))
    return CollectedLinks(files=file_links, find_links=find_link_links, project_urls=url_locations)