fix some syntax error
make scrapy output in good order and fix some bugs