yatuc.py 409 B

123456789101112
  1. from terroroftinytown.services.base import BaseService
  2. from terroroftinytown.services.status import URLStatus
  3. class YatucService(BaseService):
  4. def process_redirect(self, response):
  5. status, url, encoding = BaseService.process_redirect(self, response)
  6. if url == 'http://yatuc.com':
  7. return URLStatus.not_found, None, None
  8. else:
  9. return status, url, encoding