borrowed more code. this scraper is super useful..