Web Scraping with Django
Chris Powers
61

Hey Chris,

Consider using raise_for_status for checking if a response was successful. I’m not familiar with Reddit but if you use a Session and don’t check duplicate you might get status code 304.

See the docs

Show your support

Clapping shows how much you appreciated Haki Benita’s story.