Post has attachment
Why the time.sleep(delay), btw? The app isn't doing anything while it's sleeping, it'd better have it wait in select than in sleep that I can see so it can process requests as soon as there's data.
one plus one
Wait while more posts are being loaded