Update scraper.py

fixed 2 minor bugs