<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_urls(self, text, only_unique=False):
 """ Find all URLs in given text. :param str text: text where we want to find URLs :param bool only_unique: return only unique URLs :return: list of URLs found in text :rtype: list """

        urls = self.gen_urls(text)
        urls = OrderedDict.fromkeys(urls) if only_unique else urls
        return list(urls)