def expand(self, url):
        url_id = url.split('/')[-1]
        api_url = '{0}{1}'.format(self.api_url, url_id)
        response = self._get(api_url)
        if response.ok:
            try:
                data = response.json()
            except __HOLE__ as e:
                raise ExpandingErrorException('There was an error expanding'
                                              ' this url - {0}'.format(e))
            return data['meta']['full_url']
        raise ExpandingErrorException('There was an error expanding'
                                      ' this url - {0}'.format(
                                          response.content))
dataset/ETHPy150Open ellisonleao/pyshorteners/pyshorteners/shorteners/readability.py/Readability.expand