Implemented several fixes for scraper.py, however, the api is still non-function.