improve the spider.py