'Parse the user\'s input to extract the URLs
:param options_list: The user configuration
:return: A list with target URLs'

def get_urls_from_target(self, options_list):

    configured_target_urls = options_list['target'].get_value()
    target_urls = []
    for target_url in configured_target_urls:
        self._verify_url(target_url)
        if (not target_url.url_string.startswith('file:///')):
            target_urls.append(target_url)
        else:
            try:
                f = urllib2.urlopen(target_url.url_string)
            except:
                msg = 'Cannot    open    target    file:    "%s"'
                raise BaseFrameworkException((msg % target_url))
            else:
                for line in f:
                    target_in_file = line.strip()
                    if (not target_in_file):
                        continue
                    if target_in_file.startswith('#'):
                        continue
                    try:
                        target_in_file_inst = URL(target_in_file)
                    except ValueError as ve:
                        msg = 'The    target    URL    "%s"    specified    inside    the    target    file    "%s"    is    invalid:    "%s"'
                        args = (target_in_file, target_url, ve)
                        raise BaseFrameworkException((msg % args))
                    self._verify_url(target_in_file_inst, file_target=False)
                    target_urls.append(target_in_file_inst)
                f.close()
    return target_urls
