xco.py 506 B

123456789101112131415
  1. from __future__ import unicode_literals
  2. from terroroftinytown.services.base import BaseService
  3. from terroroftinytown.services.status import URLStatus
  4. class XCOService(BaseService):
  5. def process_redirect(self, response):
  6. status, url, encoding = BaseService.process_redirect(self, response)
  7. if status == URLStatus.ok:
  8. if url == 'http://www.godaddy.com/default.aspx?isc=xcowebgd':
  9. return URLStatus.not_found, None, None
  10. return status, url, encoding