refactored some scraping code, but the current similarity doesn't work very well