script wrapped into Spider class