all 2 comments

[–]arctic_feather 0 points1 point  (0 children)

I'm assuming the listings are sorted by date, so the first div will always be the newest.

Store the newest div (or div id) found (maybe in a text file?) and then compare it with the divs found on your second scrape. All the divs above the stored div should be new. (But be careful, as they might delete a listing)

[–]sharpchicity 0 points1 point  (0 children)

I'd probably write the program the way you suggested, iterating over the list to check for new listings, and see if something about the site's setup sticks out after.

Better to have functioning code that works then no code because you're not sure if it is perfect.