'Pop a request'

def pop(self, timeout=0):

    if (timeout > 0):
        url = self.server.brpop(self.key, timeout=timeout)
        if isinstance(url, tuple):
            url = url[1]
    else:
        url = self.server.rpop(self.key)
    if url:
        try:
            if (('/follow' in url) or ('/fans' in url)):
                cb = getattr(self.spider, 'parse_relationship')
            elif ('/profile' in url):
                cb = getattr(self.spider, 'parse_tweets')
            elif ('/info' in url):
                cb = getattr(self.spider, 'parse_information')
            else:
                raise ValueError(('Method    not    found    in:    %s(    URL:%s    )' % (self.spider, url)))
            return Request(url=('https://weibo.cn%s' % url), callback=cb)
        except AttributeError:
            raise ValueError(('Method    not    found    in:    %s(    URL:%s    )' % (self.spider, url)))
