Python Requests Exceptions List

Honestly, this should be a default setting for the requests library. Without it, your code is doomed if you get any connection errors. Add a ‘try’ when connecting to your URL, then use these exceptions to let your code keep running if there are any errors. This works great for when you’re scraping many URLs …

Read More

MIME and Multi-part messages for SMTP using Python

In yesterday’s post, I wrote about how I learned how to set up a local SMTP server. I came across a problem that I couldn’t solve, and it started getting late. What’s kind of stupid about sending emails is the fact that you need to stuff all the important data into one big message. For …

Read More