LaundryView updated their links, so the link that was previously being scraped for data no longer leads to the graphic. Instead, there is a new link to get that data, and the old link that the code had as itsBASE_URL now just leads to a JSON payload of all the info about the different washers and dryers.
I updated the parsing strategy so instead of web scarping with BeautifulSoup, it just takes the JSON from the old link, parses the necessary information, and returns it in the way the code originally did. The old link essentially works like a LaundryView API now.
I also added a mock JSON file for testing purposes, and refactored the test to accommodate for that.
LaundryView updated their links, so the link that was previously being scraped for data no longer leads to the graphic. Instead, there is a new link to get that data, and the old link that the code had as its
BASE_URL
now just leads to a JSON payload of all the info about the different washers and dryers.I updated the parsing strategy so instead of web scarping with BeautifulSoup, it just takes the JSON from the old link, parses the necessary information, and returns it in the way the code originally did. The old link essentially works like a LaundryView API now.
I also added a mock JSON file for testing purposes, and refactored the test to accommodate for that.