def get(self, default=None):
        """
        Return the result of ``.get()`` for the first element in this list.
        If the list is empty, return the default value.
        """
        for x in self:
            return x.get()
        else:
            return default

        Return the result of ``.get()`` for the first element in this list.
        If the list is empty, return the default value.
        
stackoverflow/venv/lib/python3.6/site-packages/parsel/selector.py