Sign In

Forgot your password? Request password reset...

Don't have an account? Register here...

Code Chronicles

In the dim glow of my computer screen, after hours of wrestling with a particularly stubborn bug, it finally happened. The lines of code aligned, the program ran seamlessly, and I felt that rush of triumph. Join me as I revisit these eureka moments and unravel the mysteries behind the code.

I write about my experiences and journey as a software developer, about coding topics that I've struggled with in the hopes that you don't have to, and about things I've learned that I think are awesome. This space is a melting pot of tutorials, discussions on tools, and explorations of intriguing software development concepts. Enjoy!

December 14, 2022 / 22 min read / 4,311 views 1 likes 0 comments

Last Updated: May 23, 2024

flask playwright python testing tutorial web web-scraping

Playwright logo with image of cartoon scraper on a webpage

Web scraping is the concept of programmatically collecting data from a website. This article will discuss using Playwright for python web scraping. The most popular web-scraping packages for python are requests and Beautiful Soup used together. This combination is potent and straightforward to use for most web pages. However, the use case has limitations because the combination relies on making server requests and reading the static HTML returned. It can be challenging to scrape single-page applications (SPAs) or websites where the objects to scrape are only available after some javascript interactions. Playwright circumvents these limitations by interacting with web pages like humans to find the data that needs scraping.

October 18, 2022 / 12 min read / 2,943 views 1 likes 0 comments

Last Updated: May 12, 2024

cookies flask python tutorial

Flask plus cookies darkmode safe

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.

Showing 1 to 2 of 2 results