revise scrape.py with necessary library