modified scrape.py