I'm trying to pull each image url from a craigslist search, but can't seem to drill down to the URL itself. When I try soup.find_all("a", { "class":"result-image gallery"} )[0].img
, it doesn't return anything.
Specifically, the page I am trying to scrape is https://raleigh.craigslist.org/search/rea?query=duplex&sort=date&availabilityMode=0&sale_date=all+dates.
I'm trying to get the image at the following src
: https://images.craigslist.org/00j0j_cC4PhAMdHLj_300x300.jpg
The super frustrating thing is that I was able to successfully do this yesterday, but didn't commit that working code to Github at the time. I have since accidentally deleted it and can't figure out what I had originally done to make this work :(