Blog Posts by Date | tag: 'python'
Python web scraping with Playwright
December 14, 2022 / 22 min read / 715 , 1 , 0
Cookies with the Flask web framework
October 18, 2022 / 12 min read / 384 , 1 , 0
Cookies! 🍪🍪 Tasty snack or valuable web development tool? 🤷♂️ For our context today, cookies are small pieces of data sent from the server to the client. The client's browser stores cookies locally and then sends the cookies back to the server with every request. Cookies are used for a variety of purposes, including session management (who's logged in?), keeping track of user settings (use dark mode?), and tracking user behavior (website analytics, ad targeting). In this tutorial, we'll talk about how to manage cookies with the Flask web framework. We'll go over setting, updating, retrieving, and deleting cookies in Flask routes.
How I went from no coding experience to coding for a living in one year (a guide)
September 15, 2022 / 85 min read / 1,114 , 3 , 2
At the start of June 2017, I was a lab technician at the University of Colorado and had no coding experience. A year later, in June of 2018, I started my first job as a full-time software developer. And I've loved my new career choice ever since. In this article, I'll talk about how I made that career pivot, and I'll give you some ideas about how you could make a similar career pivot if it interests you.
End-to-end website testing with Playwright
July 20, 2022 / 26 min read / 2,556 , 2 , 0
9 pytest tips and tricks to take your tests to the next level
July 12, 2021 / 34 min read / 7,268 , 10 , 4
Are you a python developer looking to improve your testing abilities with pytest? Me too! So I've put together a list of 9 tips and tricks I've found most useful in getting my tests looking sharp. Here are the features we're going to be covering today:
- Useful command-line arguments
- Mocking with
fixtures and the
- Testing python exceptions
- Checking stdout and log messages
- Parameterizing tests
- Using pytest-cov
Easy and flexible flask login with authomatic and mongoengine
July 12, 2021 / 47 min read / 2,896 , 5 , 3
Many users like the simplicity of clicking one button to register and/or
log into a website using one of their existing logged-in accounts on another
website such as
In this article, I'll talk about how you can log in and register users for your flask application with flexibility by allowing either OAuth2 or username/password authentication. We'll be using Flask for our web framework, MongoDB for our database, and authomatic for our OAuth authentication framework. But if those don't apply to you, don't fret! Many of the concepts discussed here can be applied to your web stack too!