SHARE
Facebook X Pinterest WhatsApp

Python Data Persistence Using MySQL

Written By
thumbnail
Web Webster
Web Webster
Oct 31, 2008

[ Thanks to Bhushan
Pangaonkar
for this link. ]

“The best way to learn new programming techniques is to
write an application that exercises them. This article will walk
you through the process of building a simple Python application
that interacts with a MySQL database. In a nutshell, the
application picks up some live data from a web site and then
persists it to an underlying MySQL database. For the sake of
simplicity, it doesn’t deal with a large dataset. Rather, it picks
up a small subset of data, storing it as a few rows in the
underlying database.

“In particular, the application gets the latest post from the
Packt Book Feed page available at
http://feeds.feedburner.com/packtpub/sDsa?format=xml. Then, it
analyzes the post’s title, finding appropriate tags for the article
associated with the post, and finally inserts information about the
post into the posts and posttags underlying database tables. As you
might guess, a single post may be associated with more than one
tag, meaning a record in the posts table may be related to several
records in the posttags table.”


Complete Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.