extract method to get price
extract methods for getting title and url, more readable which is more important IMO
extract method to get listing details
extract methods for getting bedrooms and square footage
extract method for detecting if it has a picture
really no reason to check if bedrooms/footage were defined, so removing that confusion
rearrange creating item
it's not an item, it's a listing :)
move declaration and initialization of date together
move getting date to where we use it
refactor getting date to clean it up and move as much code to getDate as possible
rename result to listings, conveys what it is
move initialization of cheerio closer to usage
add note to review my refactorings in the commit log for gems to evolve things further